GNU bug report logs -
#12603
bug in chown
Previous Next
Reported by: Гальченко Алексей <gasx <at> rambler.ru>
Date: Mon, 8 Oct 2012 16:05:02 UTC
Severity: normal
Tags: notabug
Done: Eric Blake <eblake <at> redhat.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your bug report
#12603: bug in chown
which was filed against the coreutils package, has been closed.
The explanation is attached below, along with your original report.
If you require more details, please reply to 12603 <at> debbugs.gnu.org.
--
12603: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=12603
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
[Message part 3 (text/plain, inline)]
tag 12603 notabug
thanks
On 10/08/2012 09:31 AM, Гальченко Алексей wrote:
> root <at> desktop:/home/user# chown user:user -R *
> chown: неизвестный ключ «--else»
> Попробуйте `chown --help' для получения более подробного описания.
Thanks for the report. However, I suspect that what happened is that
you have a file in your current working directory whose name starts with
'-', and was therefore treated as an option. If I'm right, then this
FAQ covers the situation:
https://www.gnu.org/software/coreutils/faq/#I-have-a-file-_0027_002df_0027-and-it-affects-rm_002e
and you can use either of these constructs to avoid the issue:
chown user:user -R ./*
chown user:user -R -- *
For that matter, using '*' with -R is rather pointless; it risks
exceeding command line limits and omits files whose names start with '.'
in the current directory; you probably want to do:
chown -R user:user .
which is also mentioned in the FAQ:
https://www.gnu.org/software/coreutils/faq/#ls-_002da-_002a-does-not-list-dot-files
--
Eric Blake eblake <at> redhat.com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
[signature.asc (application/pgp-signature, attachment)]
[Message part 5 (message/rfc822, inline)]
root <at> desktop:/home/user# chown user:user -R *
chown: неизвестный ключ «--else»
Попробуйте `chown --help' для получения более подробного описания.
This bug report was last modified 12 years and 289 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.