Source-Changes-D archive

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

Re: CVS commit: src/bin/sh



   Date: Mon, 4 Jan 2016 20:06:55 -0500
   From: christos%zoulas.com@localhost (Christos Zoulas)

   On Jan 5,  5:33am, kre%munnari.OZ.AU@localhost (Robert Elz) wrote:
   -- Subject: Re: CVS commit: src/bin/sh

   |   | Does the exec'ed program know what to do with fd > 2?
   |   | Is it hard-coded, or do we specify it with -fd N?
   | 
   | More likely, if this ever was to be used, it would be /dev/fd/N
   | but certainly this is not going to be common.

   Right, otherwise people would complain a lot more about ksh than
   they currently do looking at the web...

I'm pretty sure I have shell scripts that rely on /dev/fd/N working as
an exec'd command argument for N > 2.  An example of an exec'd program
that uses N > 2 without /dev/fd/N is gpg, with the --passphrase-fd,
--command-fd, --status-fd options.  I would be unhappy if these broke.

...unless I've misunderstood what this thread is about from my very
cursory skimming of it.


Home | Main Index | Thread Index | Old Index