coreutils
[Top][All Lists]
Advanced

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

Re: "tee -" treating "-" as stdout violating POSIX?


From: Pádraig Brady
Subject: Re: "tee -" treating "-" as stdout violating POSIX?
Date: Thu, 19 Feb 2015 08:47:44 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0

On 19/02/15 02:55, Eric Blake wrote:
> On 02/18/2015 06:59 PM, Pádraig Brady wrote:
> 
>>
>> I'm worried about breaking scripts that do stuff like:
>>
>>   tee file - >/dev/null
> 
> But why do that when:
> 
> tee file
> 
> does the same with less typing?

Sure, but since the former is more symmetrical wrt arguments,
it's possible it might be used.  Now I am stretching a bit.
Also the "normal" form is more efficient as it avoids redundant
writes to /dev/null.

I'm 50:50 on changing now.

Pádraig



reply via email to

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