[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: |& in bash?
From: |
Chet Ramey |
Subject: |
Re: |& in bash? |
Date: |
Sat, 19 Jan 2013 14:47:38 -0500 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/17.0 Thunderbird/17.0 |
On 1/18/13 4:10 PM, Dan Douglas wrote:
> In scripts it breaks POSIX, conflicts with the coproc operator in kshes, and
> applies the redirections in an unintuitive order since the same operator
> redirects stdout first, then applies the stderr redirect after other
> redirections. It isn't very common to dump multiple streams into one pipe. I
> suggest avoiding |&.
It doesn't `break' Posix. Posix doesn't say anything about it, so it's
simply undefined.
It's syntactic sugar. A parser macro, if you will.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/
- |& in bash?, John Caruso, 2013/01/17
- Re: |& in bash?, Chet Ramey, 2013/01/17
- Message not available
- Message not available
- Re: |& in bash?, John Caruso, 2013/01/21
- Re: |& in bash?, Steven W. Orr, 2013/01/22
- Re: |& in bash?, Greg Wooledge, 2013/01/22
- Re: |& in bash?, Bob Proulx, 2013/01/22
- Re: |& in bash?, Andreas Schwab, 2013/01/22
- Re: |& in bash?, DJ Mills, 2013/01/22
- Re: |& in bash?, Andreas Schwab, 2013/01/23
- Re: |& in bash?, Greg Wooledge, 2013/01/22
- Re: |& in bash?, Bob Proulx, 2013/01/22