This is the mail archive of the
cygwin-developers@cygwin.com
mailing list for the Cygwin project.
Re: Symlinks under /proc
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.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader mailto:cygwin@cygwin.com
Red Hat, Inc.