This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Path confusion


-----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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]