On Tue, Dec 26, 2000, Oleg Goldshmidt wrote about "spaces in filenames":
>
> Hi, I see the following weird phenomenon: bash cannot recognize
> filenames or directories that have spaces, unless I am root/su. This
> is a typical example:
>
> $ mkdir "Foo Bar"
> $ cd Foo\ Bar/
> bash: cd: Foo: No such file or directory
> $ su
> Password:
> # cd Foo\ Bar/
> /home/oleg/tmp/Foo Bar
Do you have a 'cd' function in your .bashrc? ;)
It appears that in your own account (but not root), you have a cd function
(e.g., that shows the current directory on a window's title), which perhaps
uses $* and distroys the shell's space handling. If this is indeed the case,
try to replace $* by "$@" (the quotes are important), and see if it fixes the
problem.
P.S. how do you see the list of functions defined in bash? In zsh you have
the 'functions' builtin. Is there a similar builtin in bash?
--
Nadav Har'El | Tuesday, Dec 26 2000, 1 Tevet 5761
[EMAIL PROTECTED] |-----------------------------------------
Phone: +972-53-245868, ICQ 13349191 |What did the Buddhist say to the hot dog
http://nadav.harel.org.il |vendor? Make me one with everything.
=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]