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 Tue, 1 Feb 2005, Corinna Vinschen wrote:

> On Feb  1 10:59, Igor Pechtchanski wrote:
> > On Tue, 1 Feb 2005, Corinna Vinschen wrote:
> > > $ less -f /proc/32461/fd/1
> > >
> > > Surprise, surprise...
> >
> > It certainly is.  So Linux *does* allow opening another process's pipe.
> > But I doubt most applications will want to do this, so unless there's an
> > outcry for this kind of thing, it's probably not necessary to support it
> > in Cygwin.
>
> I've checked in a preliminary implementation which allows opening pipes
> in the own process, so your example
>
>   echo "blaaah" | perl -pe 's/aaa/bbb/g' /proc/self/fd/0
>
> now works.

That's cool, thanks!  Another quick question is whether Cygwin will stay
with a virtual /dev directory for now.  If so, I'll coordinate with John
to get a new version of my create_devices.sh (that also creates /dev/std*)
into base-files.
	Igor
-- 
				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]