Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
popen: support nil in second argument
In the C implementation of the Lua interpreter, in the io.popen function the second argument can be nil: Lua 5.1.5 Copyright (C) 1994-2012 Lua.org, PUC-Rio: > x,y = io.popen("ls", nil) > assert(x) > assert(y == nil) > Gopher lua throws an exception: bad argument #2 to popen (string expected, got nil) Closes #459
- Loading branch information