Fixed options not being passed along properly by shell.execute.

This commit is contained in:
Florian Nücke 2014-04-20 22:19:12 +02:00
parent d0d4f502ba
commit 59d7c75428

View File

@ -130,7 +130,7 @@ if #args == 0 and (io.input() == io.stdin or options.i) and not options.c then
end
else
-- execute command.
local result = table.pack(execute(table.unpack(args)))
local result = table.pack(execute(...))
if not result[1] then
error(result[2])
end