Thorsten Glaser wrote:
> Jonathan Nieder dixit[1]:

>>      <( ... )    - runs ... in a subshell in the background, with its
>>                    output connected to a pipe.
[...]
>> On Linux and similar OSes this is typically implemented using
>> /proc/fd.  A more portable implementation would use FIFOs.
>
> I don’t know whether this works on all mksh target OSes, but
> that can surely be investigated.
[...]
> <(…) is already on the wishlist – if you want to submit a
> patch, you’re welcome ;-) it should work on DEC ULTRIX 4.5,
> DEC OSF/1 V2.0, Minix 3, Haiku, Cygwin, UWIN, etc. though,
> and, if possible, Plan 9. ☺

Ha.  mkfifo was part of POSIX.1-1988, so it should be fairly
portable.

 - Ultrix and OSF/1 2.0:        has mkfifo.
 - Minix 3:     ought to have mkfifo (claims POSIX compliance).
 - Haiku:       has mkfifo
 - Cygwin:      has /proc/self/fd
 - UWIN:        complicated?  The ast-ast library supports /dev/fd,
                but native Windows apps obviously don't.
 - Plan 9:      has devdup[2].  "bind #d /dev/fd" and you're good to go.

It's on my list now. :)

>> This construct is also handy when one wants to update the current
>> environment downstream from some other process.
>
>       process |&
>       while IFS= read -pr line; do
>               …
>       done

Nice.  I had been hoping for something like that.

> A side note, I’d like to track upstream feature requests
> *not* inside the Debian BTS. We usually use the MirBSD
> mailing list

Thanks for a pointer.  I'll report straight here from now on (perhaps
along with reports to Debian with an appropriate "Forwarded:"
pseudo-header).

[1] http://bugs.debian.org/606821
[2] http://plan9.bell-labs.com/magic/man2html/3/dup



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to