chmod problem
Alf-Ivar Holm
alfh at student.matnat.uio.no
Tue May 10 13:23:15 UTC 2005
James Wilkinson <ubuntu at westexe.demon.co.uk> writes:
> Alf-Ivar Holm wrote:
>> As the ".*" is expanded by the shell, you can get the list of files
>> given to chmod by issuing "echo .*" in the same directory. Your
>> assumption about sorting is right (at least if you were using
>> bash(1)).
>
> FWIW, what the Original Poster probably wanted was the shopt -s dotglob
> command, which makes the shell expand * to include everything beginning
> with a dot *except* "." and "..".
Have to admit that I didn't know about shopt, but since the Original
Poster actually did a chmod on ".*" and "." and ".." are (normally)
expanded first, my guess would be that they were also modified.
Affi
More information about the ubuntu-users
mailing list