This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Path confusion
- From: Eric Blake <ebb9 at byu dot net>
- To: Luke Kendall <luke dot kendall at cisra dot canon dot com dot au>
- Cc: cygwin at cygwin dot com, bug-coreutils at gnu dot org
- Date: Fri, 01 Apr 2005 06:24:57 -0700
- Subject: Re: Path confusion
- References: <20050401071130.2051685080@pessard.research.canon.com.au>
- Reply-to: bug-coreutils at gnu dot org
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
[moving feature request portion of thread to bug-coreutils]
According to Luke Kendall on 4/1/2005 12:11 AM:
>>>> find / -xdev -user "$USER" -print0 | xargs -0 chown Administrators.SYSTEM
>>>
>>> You must mean 'chown -R --from="$USER" ...' :-)
>>
>> Hmm, sounds better still. :-)
>
>
> D'oh! Not possible: there's no -xdev option on chown, so that would
> do a whole lot more chown-ing than intended, as it reached across the
> network, or at least into other mount points under "/" ...
How about it - does it make sense to add an --xdev option to all of the
recursive descent tools (chown, chmod, ls, ...) to force the recursion to
stop at mount points, or is find/xargs the only supported idiom for this?
- --
Life is short - so eat dessert first!
Eric Blake ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFCTUup84KuGfSFAYARAsM0AJ9tr8cXToAUL8pFTbQ7Wwsb1QdBIACg2bjN
65Rg1B3FY0hhu/0ABmsTVHw=
=cgtW
-----END PGP SIGNATURE-----
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/