Alan DeKok wrote:
Chris Ross <[EMAIL PROTECTED]> wrote:

  It may be a common UNIX problem, but it's not like UNIX prevents
you from handling it.


[EMAIL PROTECTED] aland]$ mkdir "hello there"
[EMAIL PROTECTED] aland]$ cd hello\ there/
[EMAIL PROTECTED] hello there]$ FOO=`pwd` [EMAIL PROTECTED] hello there]$ cd .. && cd $FOO
bash: cd: /home/aland/hello: No such file or directory


Unix doesn't make it easy, either.

That depends on your shell. Those commands work just fine in zsh. In bash (or any other bourne shell) you can cd "$FOO" to work around that problem. I mean, you're using an itentifier. It's just because it is legal without quotes that noone uses them by habit. I tend to when shell programming, cause it's just "safer" and never wrong.

  (*shrug*)  But, you're right, UNIX doesn't make it
easy.  Not as hard as having backslashes in directory
names, but...  :-)

                  - Chris

- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to