'chown' and hidden directories
Michael Hipp
Michael
Wed Feb 23 08:39:38 PST 2005
Ken Moffat wrote:
> How do you get chown to do hidden directories?
>
>> |>>
>> |>>> chown -R michael: .[^.]*
>> |>>
>>
>> |>
>> |>
>> |> If I'm not mistaken, any file that begins with a ., and doesn't have a
>> |> . after it
>> |> .[not .]*
>> |
>>
>
> Was there ever a definitive solution to this esoteric problem?
I believe the one above is the simplest. I didn't have the courage to try some
of the others :-)
Even worse, I found out that chown does not behave as (I) expected:
chown -R michael: *
behaves differently than
chown -R michael: /path/to/target
The latter processes dot-hidden directories, the first does not. Perhaps this
is intentional, but it looks like a bug to me.
Thoughts?
Michael
More information about the Linux-users
mailing list