bug-bash
[Top][All Lists]
Advanced

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

Re: Is this a design oversight? BASH redirection failure


From: Chet Ramey
Subject: Re: Is this a design oversight? BASH redirection failure
Date: Tue, 24 Feb 2015 15:10:02 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.4.0

On 2/24/15 1:32 PM, John McKown wrote:
> I run with "set -o noclobber". I know to use >| to redirect stdout and
> overwrite an existing file. But I often want to redirect both stdout
> and stderr to the same file. Which I do with the &> operator. But I
> cannot _easily_ redirect both and overwrite at the same time. I was
> expecting &>| to work, but it doesn't.

Not an oversight so much as shorthand that has never really seemed worth
implementing.

-- 
``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/



reply via email to

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