emacs-bug-tracker
[Top][All Lists]
Advanced

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

[debbugs-tracker] bug#12603: closed (bug in chown)


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#12603: closed (bug in chown)
Date: Mon, 08 Oct 2012 16:55:04 +0000

Your message dated Mon, 08 Oct 2012 10:53:29 -0600
with message-id <address@hidden>
and subject line Re: bug#12603: bug in chown
has caused the debbugs.gnu.org bug report #12603,
regarding bug in chown
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
12603: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=12603
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: bug in chown Date: Mon, 08 Oct 2012 18:31:51 +0300 User-agent: Mozilla/5.0 (X11; Linux i686; rv:15.0) Gecko/20120912 Thunderbird/15.0.1
address@hidden:/home/user# chown user:user -R *
chown: неизвестный ключ «--else»
Попробуйте `chown --help' для получения более подробного описания.




--- End Message ---
--- Begin Message --- Subject: Re: bug#12603: bug in chown Date: Mon, 08 Oct 2012 10:53:29 -0600 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120911 Thunderbird/15.0.1
tag 12603 notabug
thanks

On 10/08/2012 09:31 AM, Гальченко Алексей wrote:
> address@hidden:/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   address@hidden    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


--- End Message ---

reply via email to

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