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

Re: A funny little mistake



On Sun, Apr 26, 1998 at 11:40:01PM +0200, Marcus Brinkmann wrote:
> 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

and

> 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. ;)

Silly, as soon as I pressed the sent button, I noticed that ./-i works just
fine. However, the backslash does not work, so I'm not blamed so much.

The solution I was thinking of was

rm -- -i

which prevents rm from interpreting -i as an option. Works fine, too.

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: