[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Removing files
From: |
Chet Ramey |
Subject: |
Re: Removing files |
Date: |
Tue, 28 Nov 2000 09:41:20 -0500 |
> I am not sure who the correct person to send this to is, but here goes...
>
> The other day I was removing a file with the name "-I". I could not use
> "rm -I" for obvious reasons. But when I did "rm *", it still treated the
> file as a parameter. To me, this does not seem right. Please correct me if
> I am wrong.
How can `rm' distinguish between a file named `-I' and an option argument?
Since the shell does pathname expansion, rm cannot tell what arguments were
the result of that expansion.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet)
Chet Ramey, CWRU chet@po.CWRU.Edu http://cnswww.cns.cwru.edu/~chet/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Removing files,
Chet Ramey <=