[Top][All Lists]
[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'.
- Re: ls, Alfred M\. Szmidt, 2005/10/02
- Re: ls, Eric Blake, 2005/10/03
- Re: ls, Alfred M\. Szmidt, 2005/10/03
- Re: ls, Eric Blake, 2005/10/03
- Re: ls, Alfred M\. Szmidt, 2005/10/03
- Re: ls, Paul Eggert, 2005/10/04
- Re: ls, Alfred M\. Szmidt, 2005/10/05
- Re: ls, Eric Blake, 2005/10/05
- Re: ls,
Alfred M\. Szmidt <=
- Re: ls, Paul Eggert, 2005/10/05
- Re: ls, Nino Pereira, 2005/10/05
- Re: ls, Alfred M\. Szmidt, 2005/10/05
- Re: ls, Nino Pereira, 2005/10/05
Re: ls, Eric Blake, 2005/10/05
- Re: ls, Alfred M\. Szmidt, 2005/10/05
Re: ls, Eric Blake, 2005/10/05
- Re: ls, Nino Pereira, 2005/10/06
Re: ls, Eric Blake, 2005/10/06
- Re: ls, Nino Pereira, 2005/10/09