lua-users home
lua-l archive

Re: io.popen read and write, again

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


On Feb 25, 2014, at 10:45 PM, Sean Conner <sean@conman.org> wrote:
> Ideally, you want to actually construct the pipe yourself so you can grab
> the return code from the initial process. Yes, this means calling pipe()
> and fork() and wait() and the mess that entails, but that way, you get total
> control over the results.
m’kay… sadly, the context for this concoction is far from ideal (no C, no modules, no nothing, just plain lua shell)… oh, well… will do with plain 'set -o pipefail;’...

AltStyle によって変換されたページ (->オリジナル) /