> Once (on a work machine) I had messed up the ownership of my home  
> directory, so I did
> [EMAIL PROTECTED] ~]# chown ross.ross -R *
> which successfully gave me back ownership of all files in my home  
> directory ... except for any dot-files. Oops! So I then did:
> 
> [EMAIL PROTECTED] ~]# chown ross.ross -R .*
> 
> Little did I realize that .* matches not only the normal dot-files, but  
> also "." and, more importantly, "..". Oops. Technically * matches .. too,  
> but I believe the shell zaps .. on a normal *, but doesn't for a ".*".  
> Live and learn, I guess!
> 
>       ~ Ross

and that was with bash, i'm guessing.  supposedly zsh is much better
behaved in this instance, but i haven't actually tested it...  at least
it wasn't 'rm -rf .*'

~erin

-- 
http://www.tuxgirl.com

Attachment: pgp9Nwyd5fMCY.pgp
Description: PGP signature

/*
PLUG: http://plug.org, #utah on irc.freenode.net
Unsubscribe: http://plug.org/mailman/options/plug
Don't fear the penguin.
*/

Reply via email to