[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Shadow shell error messages when running os.execute/io.popen from Lua
- From: Jeff Pohlmeyer <yetanothergeek@...>
- Date: Fri, 30 Aug 2013 06:12:17 -0500
On Thu, Aug 29, 2013 at 4:35 PM, Pierre-Yves Gérardy wrote:
> local f = io.popen(command..' 2>&1 && echo " $?"')
I think the command separator should be a semicolon:
io.popen(command..' 2>&1 ; echo " $?"')
Because '&&' means the 'echo " $?"' will only be executed if the
command succeeds.
- Jeff