bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: new redirection operator seems broken


From: Andreas Schwab
Subject: Re: new redirection operator seems broken
Date: Thu, 12 Mar 2009 17:56:06 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux)

Greg Wooledge <wooledg@eeg.ccf.org> writes:

> On Thu, Mar 12, 2009 at 05:21:04PM +0100, Andreas Schwab wrote:
>> Still does not fix this case:
>> 
>> $ echo >&2 |& wc -l
>> 
>> 0
>
> That looks like the correct output to me.  When setting up a pipeline
> with redirections, the pipeline happens first.
> 
> The manual says your example should be equivalent to
>
>   echo >&2 2>&1 | wc -l

You are right, it works as documented.  Still it looks counterintuitive.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




reply via email to

[Prev in Thread] Current Thread [Next in Thread]