[Top][All Lists]
[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-----
- Suggestion for rmdir, Adam Jimerson, 2008/12/27
- Re: Suggestion for rmdir, Eric Blake, 2008/12/27
- Re: Suggestion for rmdir, Adam Jimerson, 2008/12/28
- Re: Suggestion for rmdir, Eric Blake, 2008/12/27
- Re: Suggestion for rmdir, Jim Meyering, 2008/12/27
- option abbreviation exceptions (was: Suggestion for rmdir), Eric Blake, 2008/12/29
- Re: option abbreviation exceptions, Eric Blake, 2008/12/29
- Re: option abbreviation exceptions, Jim Meyering, 2008/12/29
- Re: option abbreviation exceptions, Pádraig Brady, 2008/12/30
- Re: option abbreviation exceptions,
Eric Blake <=
- Re: option abbreviation exceptions, Jim Meyering, 2008/12/29