This is the mail archive of the cygwin-developers@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Symlinks under /proc


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?
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]