Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Lua's standard library is so small, in fact, that until 2012 there was popen() but no pclose(), a bizarre situation that persists today for people still using Lua 5.1 (which is probably the most popular version deployed).

So you can spawn a shell to run an external program, but you cannot retrieve its return code to know if it succeeded or failed. Now that's minimalism!



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: