[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [coreutils] default behavior to truncate
From: |
Eric Blake |
Subject: |
Re: [coreutils] default behavior to truncate |
Date: |
Fri, 10 Dec 2010 09:27:16 -0700 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.12) Gecko/20101103 Fedora/1.0-0.33.b2pre.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.6 |
On 12/10/2010 09:10 AM, wayana wrote:
> Hi,
>
> I'm wondering why truncate requires a "mandatory option" (-r or -s) to
> work.
This has been suggested in the past. Unfortunately, truncation to 0
bytes is viewed as a rather destructive operation, so the current
thought is that it is worth making the user do a bit of extra typing to
imply that they meant it. And you can always write a shell function or
alias to supply the argument automatically, if you like the ease of a
shorter command in an interactive environment.
--
Eric Blake address@hidden +1-801-349-2682
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature