[EMAIL PROTECTED] scripsit:

> For example:
> 
> cd /home/ben/My\ Stuff
> basename $PWD

That's because $PWD is expanded into

        /home/ben/My Stuff

by the shell, which is interpreted as two arguments: basename processes
only the first one.  Try this:

$ basename "$PWD"
My Stuff
$

-- 
He played King Lear as though           John Cowan <[EMAIL PROTECTED]>
someone had played the ace.             http://www.ccil.org/~cowan
        --Eugene Field


_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to