Re: What's up with bash shell and spaces in filenames?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, May 10, 2010 at 8:31 AM, Fennix <cn.stefan@xxxxxxxxx> wrote:
> On Mon, May 10, 2010 at 11:23 PM, Alan Evans <ame.fedora@xxxxxxxxx> wrote:
>>
>> This is an on-again-off-again kind of problem. It usually hits me when
>> it is least convenient, like when I only have shell access to the
>> machine. Example:
>>
>> [alan@agena ~]$ cd /media/My\ Book/
>> bash: cd: /media/My: No such file or directory
>> [alan@agena ~]$ cd "/media/My Book/"
>> bash: cd: /media/My: No such file or directory
>> [alan@agena ~]$ Gaaah!
>> bash: Gaaah!: command not found
>>
>> What's up with that? Usually it is no trouble, but occasionally, bash
>> refuses to deal with spaces. I don't even know what to do in this
>> case.
>
> Put the space or the whole path in quotes?  This works for me.
>
> cd /media/My" "Book/

Nope:

[alan@agena ~]$ cd /media/My" "Book/
bash: cd: /media/My: No such file or directory

> cd "media/My Book/"

Tried that already!
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux