CHMOD Big Oops!

Andrew McNabb amcnabb at mcnabbs.org
Sat Nov 11 00:53:13 MST 2006


On Fri, Nov 10, 2006 at 09:53:49PM -0700, Matthew Walker wrote:
> 
> Actually, this one confuses me, because I have on many occasions used
> .*, and I use bash exclusively, and this has never been a problem for
> me.
> 
> Maybe this is from years ago, but in at least the last four or five years,
> it hasn't behaved this way.
>

In Bash:

"""
maude:~/hi1/hi2 amcnabb$ rm -rf ..
rm: "." and ".." may not be removed
"""

which is good.  However:

"""
maude:~/hi1/hi2 amcnabb$ ls .*
.:
file2

..:
file1	hi2
"""

I have never personally used ".*" in a situation where including ".."
was appropriate (I've been paying attention for two years).  I wish that
Bash would copy ZSH's behavior and define ".*" to mean everything except
for "." and "..".


-- 
Andrew McNabb
http://www.mcnabbs.org/andrew/
PGP Fingerprint: 8A17 B57C 6879 1863 DE55  8012 AB4D 6098 8826 6868
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://plug.org/pipermail/plug/attachments/20061111/c9a0f882/attachment.bin 


More information about the PLUG mailing list