address@hidden 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 <address@hidden>
someone had played the ace. http://www.ccil.org/~cowan
--Eugene Field