On Wed, Jan 19, 2000 at 01:40:40PM -0700, John Starkey wrote:
> How do you enter a name that has spaces into a command.
> 
> Something like:
> 
> mv spacey text.doc www
> 
> Obviously Linux interprets "text" as the destination and "spacey" as the
> file.

        Wrong. Linux does not. The Linux Kernel's only interaction
        is a call to rename(2)(man 2 rename) which doesn't care if 
        there are spaces in the path name. The fault lies with your
        shell (probably bash), which interprets the spaces as seperate
        arguments. Don't worry though, shells aren't that dumb, they
        give you ways to refer to files w/ spaces in the name.

        Here's the three ways I can think of (off the top of my head)
        to refer to a file with a space in the name

        spacey\ text.doc
        "spacey text.doc"
        'spacey text.doc'

have fun mv'ing

greg

-- 
spacey~1?
naahhhhhhhhhh........

Reply via email to