Hi,
Scott Ferguson wrote:
There, we'll have to disagree. Perhaps your shell handles ls
differently. Also you are running as root, I'm not
Yes, well as root, I admit -- quick tests in a special and safe working
directory.
/bin/bash shell
Whatever you do use "*" do so with extreme caution, especially with rm.
Test first to be sure if you wish to use it.
And to stop command history being a problem, I often use the full path
the files/directories such as:
rm /tmp/somedir/* /tmp/somedir/.*
Anyway, I'm sure everyone gets the message and no-one is thinking of
using "rm -rf *" too easily or too quickly. And again, yes, doing
anything like this as root needs even more care.
The find with print0 and xargs with -0 are good tips for anyone too.
Quite handy without having to worry about IFS as well on files and/or
directories with other characters, like space(s).
Cheers
A.
--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4e05c413.7090...@affinityvision.com.au