/proc/nnn/fd/nnn and bash

Dan Demus dan at Paragon.COM
Thu Aug 31 10:38:02 EDT 1995


Dale writes:

   Has anyone use the /proc/nnn/fd/mmm special files?  Apparently, when
   opened, they give a duplicate of file descriptor mmm of process nnn
   (if you have permission).  It seems like bash could use this to
   implement the >(...) and <(...) "process substitution" mechanism, but
   doesn't.

What it is really used for is to turn programs like cpio which aren`t
designed to be filters into filters.

Is process substitution just another PIPELINE notation?

		Dan.



More information about the Discuss mailing list