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

Wed Jun 4 19:36:04 UTC 2014
Herta Van den Eynde <herta.vandeneynde at gmail.com>

No OSX here either, but just to be sure, could you publish the results of:

  which cd; echo $?
  locate cd | grep '/cd'$; echo $?
  ls -ldb ~/Library/Application*




On 4 June 2014 20:42, James B. Byrne <byrnejb at harte-lyne.ca> wrote:

>
> 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
>
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>



-- 
"Life on Earth may be expensive,
 but it comes with a free ride around the Sun."