Re: execline's pipeline (and forbacktickx) with closed stdin

2015-05-09 Thread Guillermo
Laurent Bercot wrote: So I've pushed a fix to the current execline git, please tell me if it works for you. Yes, that worked. However, POSIX considers that UB is acceptable when you run a program with 0, 1 or 2 closed: look for If file descriptor 0 in

Re: execline's pipeline (and forbacktickx) with closed stdin

2015-05-09 Thread Laurent Bercot
On 10/05/2015 00:07, Guillermo wrote: I ran into this while experimenting with the example / template stage 1 and 3 init scripts that come with s6's source code. Both of them do an early fdclose 0 to ignore input. Wouldn't that be tempting the demons to fly through your nose, then? :) Know

Re: execline's pipeline (and forbacktickx) with closed stdin

2015-05-09 Thread Laurent Bercot
On 09/05/2015 01:13, Guillermo wrote: Are we not supposed to use pipeline or forbacktickx with a closed stdin, or is this something that needs fixing? Honestly... both. It's Complicated (tm). I read your mail yesterday, shortly after you wrote it, but it opened a rabbit hole in more than