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

Tue Jun 3 16:34:29 UTC 2014
Bill Campbell <centos at celestial.com>

On Tue, Jun 03, 2014, James B. Byrne wrote:
>Apologies for this OT post.  I need some help debugging a bash script.  It
>just happens to be provided by Apple Inc.
>In a terminal session under OSX-10.9.3 I want do do this:
>cd ~/'Library/Application Support'

Works for me on my OS X 10.8.5 Macbook Pro, xterm under xQuartz
and under the Terminal.app.

>Which is a simple enough request.  However, OSX returns: cd
>/users/byrnejb/Library/Application: No such file or directory.  The space
>evidently acts as a delimiter to cd even though the path is quoted.
>However this:
>ls -l ~/'Library/Application Support'

Perhaps you have 'cd' as an alias or a function which loses the
quotes when passing to the real cd?

INTERNET:   bill at celestial.com  Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/  PO Box 820; 6641 E. Mercer Way
Voice:          (206) 236-1676  Mercer Island, WA 98040-0820
Fax:            (206) 232-9186  Skype: jwccsllc (206) 855-5792

For every subtle and complicated question, there is a perfectly
simple and straightforward answer, which is wrong.  -- H. L. Mencken