lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> From: Roberto Ierusalimschy [roberto@inf.puc-rio.br]
> 
> > Is this second returned value any useful? Even if the child process
> > running the command terminates with a signal, the shell running it will
> > terminate normally, and that will be the status returned by pclose.
> > It seems that almost always the type of exit will a "normal" exit.
> 
> I have used shells that exec the last command in a script. Seems useful because you save one fork.
> And even if they dont do it you can still call io.popen( "exec cmd" ).

It makes sense. Thanks,

-- Roberto