The \ problem (or annoyance), and a fix proposal

Matthias Benkmann msbREMOVE-THIS at winterdrache.de
Tue Jan 13 12:34:12 PST 2004


On Tue, 13 Jan 2004 17:36:37 -0000 "Duarte Cordeiro"
<Duarte.Cordeiro at cm-lisboa.pt> wrote:

> 
> Although the backslash + space isn't a problem in any shell (or at least
> I think it's not), 

It IS a MAJOR problem. Look at this:

> touch foo
> cp foo \ bar
> rm bar
rm: cannot remove `bar': No such file or directory
> ls bar
ls: bar: No such file or directory

Now what's happening here? Look at this:

> rm ' bar'
rm: remove ` bar'? y


If you write something like   \ --foo, then the parameter " --foo" gets
passed to the program. That's something completely different from "--foo".

MSB

-- 
Nietzsche: God is dead!

God: Nietzsche is dead!




More information about the lfs-dev mailing list