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

Re: A funny little mistake



On Sun, Apr 26, 1998 at 11:44:55PM +0800, The Thought Assassin wrote:
> On Sun, 26 Apr 1998, Chris wrote:
> > On Sun, 26 Apr 1998, The Thought Assassin wrote:
> > > the backslash is the shell's delimiting character, and the shell will not
> > > try to expand anything directly after a backslash.
> > This is the best thing to try first - although I have seen some things
> > that even this won't work on.
> >
> > Chris
> 
> Such as what?

WHOA!

This is my chnace to present my most stupid mistake:

root@flora:/tmp# cat /dev/null > -i
root@flora:/tmp# rm -i
rm: too few arguments
Try `rm --help' for more information.
root@flora:/tmp# rm "-i"
rm: too few arguments
Try `rm --help' for more information.
root@flora:/tmp# rm '-i'
rm: too few arguments
Try `rm --help' for more information.
root@flora:/tmp# rm \-i
rm: too few arguments
Try `rm --help' for more information.

It took me some time to deal with it. There is a trick. I'll leave it as an
exercise to the reader. Hint: It is possible with rm. ;)

Marcus

-- 
"Rhubarb is no Egyptian god."        Debian GNU/Linux        finger brinkmd@ 
Marcus Brinkmann                   http://www.debian.org    master.debian.org
Marcus.Brinkmann@ruhr-uni-bochum.de                        for public  PGP Key
http://homepage.ruhr-uni-bochum.de/Marcus.Brinkmann/       PGP Key ID 36E7CD09


--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Reply to: