[CentOS] [OT] OSX-10.9.3 cd ~'/ problem with spaces'

Wed Jun 4 18:42:23 UTC 2014
James B. Byrne <byrnejb at harte-lyne.ca>

On Tue, June 3, 2014 12:13, SilverTip257 wrote:
> Escape the space with a backslash.
> cd ~/Library/Application\ Support
hll-m22:~ byrnejb$ cd ~/Library/Application\ Support
-bash: cd: /Users/byrnejb/Library/Application: No such file or directory
hll-m22:~ byrnejb$ cd ~/"Library/Application\ Support"
-bash: cd: /Users/byrnejb/Library/Application\: No such file or directory

On Tue, June 3, 2014 12:37, Stephen Harris wrote:
> The OP likely has a function called "cd" which does other stuff (sets
> the prompt?) and then calls the builtin cd, but its not quoting the
> variables properly and so breaking.
hll-m22:~ byrnejb$ alias
alias ..='cd ..'
alias ...='cd ../..'
alias copy='cp -i'
alias cp='cp -i'
alias etl='~/projects/proforma.git/vendor/plugins/activewarehouse-etl/bin/etl'
alias la='ls -la'
alias ll='ls -l'
alias mate='gvim -c NERDTree'
alias mc='mc -c'
alias mcd='mount /mnt/cdrom'
alias rm='rm -i'
alias search='grep'
alias ucd='umount /mnt/cdrom'
$ unalias cd
-bash: unalias: cd: not found

On Tue, June 3, 2014 13:03, Paul Heinlein wrote:
> Try
> cd "${HOME}/Library/Application Support/"
hll-m22:~ byrnejb$ cd "${HOME}/Library/Application Support/"
-bash: cd: /Users/byrnejb/Library/Application: No such file or directory

I had already tried many different ways of specifying the target directory
before giving up and asking for help.

The suggestions concerning a cd alias seem promising because at one time I had
RVM installed, which does override cd. There is no alias present but there are
artefacts of rvm scattered about so I will check these.

Thanks for the help.

***          E-Mail is NOT a SECURE channel          ***
James B. Byrne                mailto:ByrneJB at Harte-Lyne.ca
Harte & Lyne Limited          http://www.harte-lyne.ca
9 Brockley Drive              vox: +1 905 561 1241
Hamilton, Ontario             fax: +1 905 561 0757
Canada  L8E 3C3