bug-coreutils
[Top][All Lists]
Advanced

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

Re: ls


From: Alfred M\. Szmidt
Subject: Re: ls
Date: Wed, 05 Oct 2005 16:24:46 +0200

   I think the point that was trying to be made is the following - if
   the user does

   $ cd /tmp
   $ rm *

   then they know exactly why files are being removed.  But if they do

Not if * gets expanded to `-rf /home/ams'.

   $ cd /tmp
   $ eval `dircolors`

   then they don't expect any side effects other than to the
   environment (although a craftily named file in /tmp can cause just
   that, by inserting arbitrary shell code into the arguments to eval
   during filename globbing expansion).

Which is exactly the same thing as `rm *' in /tmp where there is a
file called `-rf /tmp/ams'. 




reply via email to

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