bug-coreutils
[Top][All Lists]
Advanced

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

Re: chown should catch null owner:group


From: Eric Blake
Subject: Re: chown should catch null owner:group
Date: Mon, 18 Feb 2008 13:08:01 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666

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

According to address@hidden on 2/18/2008 11:56 AM:
| LW> "chown -R ." gave an error
| Try
| DJ> chown -R . file
| which should emit
| "Holmes, you think you are changing the owner of FILE to be the same
| as the owner of ".", but you have actually typed something else (-R
| means recursive) which is an absolute error, about which the new
| improved chown command will hereby exit 1".

But why should it be an absolute error?  We have already pointed out to
you that resetting to defaults is not necessarily a no-op, therefore,
who's to say that we can gratuitously break someone else's usage where
they depended on this command to actually do something?  You have to give
more arguments why your usage pattern should warrant a warning, because I
see no inherent reason why using the tool to reset the default group is
wrong.  And meanwhile, you should get used to using long options, since
they aren't as ambiguous (not to mention that in general across the
coreutils, tools that supply -R generally mean recursive).  In general,
the coreutils should NOT make assumptions that you meant --reference when
you typed -R - you get what you typed.  But ultimately, since this problem
doesn't seem to bother anyone else, you'll get more results if you provide
a patch than if you just complain.

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

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

iD8DBQFHueWg84KuGfSFAYARAvAxAJ9Iwpq3l09vXrUWEuk58g3WWdXQ8QCgijaB
O1oty3550Hah+ySglQ59NyY=
=y2Ak
-----END PGP SIGNATURE-----




reply via email to

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