bug-fileutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FYI...


From: Bob Proulx
Subject: Re: FYI...
Date: Fri, 2 Mar 2001 23:50:48 -0700

> Summary: Trying to use rm to do remove all lowercase lettered filenames.
> expedition /src/X11/bin/expect5.32/obj/sol2.8 290 # touch A B C a b c
> expedition /src/X11/bin/expect5.32/obj/sol2.8 291 # rm -rf [a-z]* .[a-z]*
> expedition /src/X11/bin/expect5.32/obj/sol2.8 292 # ls
> A

That is bizarre.  But I one more thing to check is what is the shell
doing when it expands those shell metacharacters?  Use echo to print
out the command before running it and I hope it will point out the
details that explain the behavior.

Also I can't recreate your problem here.

address@hidden /tmp]$ mkdir /tmp/testdir
address@hidden /tmp]$ cd /tmp/testdir
address@hidden testdir]$ touch A B C a b c
address@hidden testdir]$ ls
A  B  C  a  b  c
address@hidden testdir]$ echo rm -rf [a-z]* .[a-z]*
rm -rf a b c .[a-z]*
address@hidden testdir]$ rm -rf [a-z]* .[a-z]*
address@hidden testdir]$ ls
A  B  C

I strongly suspect something about the files and the shell wildcard
expansion being the problem here.

Bob



reply via email to

[Prev in Thread] Current Thread [Next in Thread]