Bug#376756: libc6: popen() should return NULL
On Tue, Jul 04, 2006 at 05:08:19PM -0300, Jakson Aquino wrote:
> $ gcc testpopen.c
> $ ./a.out
> Before: F = (nil)
> After: F = 0x501010
> sh: nothing: command not found
This means that popen() _did_ succeed (it has invoked the shell). The
fact that the shell could not interpret the command and therefore exited
with an error is not popen()'s business anymore.
Gabor
--
---------------------------------------------------------
MTA SZTAKI Computer and Automation Research Institute
Hungarian Academy of Sciences
---------------------------------------------------------
Reply to: