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: Bernhard Voelker
Subject: Re: "tee -" treating "-" as stdout violating POSIX?
Date: Thu, 19 Feb 2015 07:56:53 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0

On 02/19/2015 03:55 AM, 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?

you probably meant

  ... | tee > file

or

  ... > file

to be equivalent - yet the argument of less typing still holds.

Have a nice day,
Berny



reply via email to

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