GNU bug report logs - #36455
Question on reading from socket(pair) instead from pipe

Previous Next

Package: grep;

Reported by: "Dr. Werner Fink" <werner <at> suse.de>

Date: Mon, 1 Jul 2019 06:23:02 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: "Dr. Werner Fink" <werner <at> suse.de>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 36455 <at> debbugs.gnu.org
Subject: bug#36455: Question on reading from socket(pair) instead from pipe
Date: Mon, 1 Jul 2019 10:48:42 +0200
[Message part 1 (text/plain, inline)]
On 2019/07/01 01:17:41 -0700, Paul Eggert wrote:
> Dr. Werner Fink wrote:
> > IMHO reading data from a FIFO/pipe or from a FSOCK/socket(pair) should result
> > in the same result.
> 
> Yes it should, but only if you invoke 'grep' with the same arguments both
> times, which I expect you didn't. Look at the two execve lines in the strace
> output.

Ah ... I see, indeed ... mea culpa
Looks like pipecmd_argf() does not work the way I expected, whereas adding
    pipecmd_arg(grep, "-e");
    pipecmd_arg(grep, "XXX");
does the job.

-- 
  "Having a smoking section in a restaurant is like having
          a peeing section in a swimming pool." -- Edward Burr
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 5 years and 328 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.