[Top][All Lists]

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

[coreutils] default behavior to truncate

From: wayana
Subject: [coreutils] default behavior to truncate
Date: Fri, 10 Dec 2010 17:10:51 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20101208 Lightning/1.0b2 Thunderbird/3.1.7


I'm wondering why truncate requires a "mandatory option" (-r or -s) to work.

Usually, options modify a default behavior and mandatory informations are provided as arguments.

Since I'm almost always using truncate to empty files, I suggest the default behavior of truncate to
be "shrink the size to 0" (i.e. truncate -s 0)


reply via email to

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