bug-coreutils
[Top][All Lists]
Advanced

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

Re: option abbreviation exceptions


From: Eric Blake
Subject: Re: option abbreviation exceptions
Date: Tue, 30 Dec 2008 06:00:18 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.18) Gecko/20081105 Thunderbird/2.0.0.18 Mnenhy/0.7.5.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Pádraig Brady on 12/30/2008 2:46 AM:
>> Usage: truncate [OPTION]... [FILE]...
> 
> Is supporting stdin a useful enhancement?
> Maybe if you can get the shell to open
> different files based on some condition,
> though again that seems a little contrived.

if cond ; then
  foo=file1
else
  foo=file2
fi
truncate -s0 <$foo

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAklaG2IACgkQ84KuGfSFAYBkhwCgkVAbg/b5mkkbNlembiDzpgeA
tdUAoL6Kzb/4DqubvAOFgABV1RdeI1w3
=mkaW
-----END PGP SIGNATURE-----




reply via email to

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