Thus spake Andrew Cutler <[EMAIL PROTECTED]>: > I realise that now, but why does chown not ignore the match since most > other commands simply return? > . is a directory -- ignored > .. is a directory -- ignored > > This inconsistency is not logical.
rm makes a special case for '.' and '..' specifically to avoid this kind of foot-shooting. It gets away with it because it doesn't make much sense to remove your current directory, much less its parent. Unfortunately, you can't really do the same thing for chown because people sometimes do say 'chown -R foo .' and really mean it. Since the '.*' is expanded by the shell, chown has no way of knowing what was really meant. (BTW, the example I gave shows you how to do what you were trying to do, without the problems you ran into.) To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message