Symlinks under /proc

Igor Pechtchanski
Mon Jan 31 17:43:00 GMT 2005

On Mon, 31 Jan 2005, Corinna Vinschen wrote:

> On Jan 31 12:20, Igor Pechtchanski wrote:
> > That's cool.  Don't want to seem pushy, but how hard would it be to go
> > from the above to /dev/std{in,out,err}?  Come to think of it, it may even
> > be as easy as "ln -s /proc/self/fd/0 /dev/stdin", etc...  That would
> > really help some apps, especially those that don't understand the "-"
> > filename argument.
> Why don't you just try it?  Experiments are the bread and butter of
> progress, aren't they?

D'oh!  After all this thought process, I looked on Linux, and that's
*exactly* how /dev/std* are implemented there.  On the one hand, it shows
that my brain still works (surprisingly).  On the other, it proves yet
again that a few months in the laboratory can usually save a few hours in
the library.
	Igor (properly ashamed)
P.S. Can those symlinks be added via the same mechanism as the /proc/self
symlink, or should base-files do it?
      |\      _,,,---,,_
ZZZzz /,`.-'`'    -.  ;-;;,_
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

More information about the Cygwin-developers mailing list