[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Redirecting pipes?
From: |
Eric S. Raymond |
Subject: |
Re: Redirecting pipes? |
Date: |
Sat, 19 Oct 2002 23:20:02 -0400 |
User-agent: |
Mutt/1.4i |
Paul Jarc <prj@po.cwru.edu>:
> { xsltproc "$tmpfile" 2>&1 >&3 | sed -e ":$tmpfile:s::foobar.xml:" } 3>&1
Hm. Are you sure that shouldn't read 2>&1 >&3 ? It looks like you're
directing stderr to fd 1, then directing fd1 to fd3
And I suspect that last 3>&1 ought to read 3>&2.
The bsic trick of using a redirect to fd 3 inside the command and a redirect
of fd 3 outside it looks like it should work, though.
--
<a href="http://www.tuxedo.org/~esr/">Eric S. Raymond</a>