MLUG: Re: [MLUG] a file named minus
Re: [MLUG] a file named minus
Email address obfuscation in effect -- please click here to turn it off.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
On Thu, 4 Jan 2007, Jeremy Hinegardner wrote:

On Solaris, tcsh shell, this failed:

rm '-'

But that same command worked on a Linux box under tcsh.

or you can take the prompty way, don't hit 'y' in the wrong spot :-)

rm -i *

No - that doesn't work on Solaris. Neither does this:

rm -i ?

Both commands return this:

usage: rm [-fiRr] file ...

Apparently this is because the globbing causes the shell to see this:

rm -i -

But, I had a directory with only one file in it. So I added a file called 'junk' and then did this:

rm junk -

That worked! It just doesn't want a minus, even a quoted one, at the beginning of the arg list.

Mike

_______________________________________________
members mailing list
EMAIL:PROTECTED
http://mlug.missouri.edu/mailman/listinfo/members