Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#513 CD fails on directories with spaces

v1.0 (example)
closed-fixed
nobody
None
5
2013-07-01
2013-02-03
Joe Sapp
No

Trying to change directory to a path with spaces in it fails -- see example below. It seems to expect that the argument is the literal path with escapes in their proper place. This does not behave as IDL 6.2 behaves, which is to effectively quote the given argument and change to that directory.
This doesn't seem to be a problem if the CWD contains a space and the argument to 'CD' is escaped.

/tmp $ mkdir "test dir"
/tmp $ gdl

GDL - GNU Data Language, Version 0.9.3

- For basic information type HELP,/INFO
- Please report bugs, feature or help requests and patches at:
http://sourceforge.net/projects/gnudatalanguage/

GDL> cd, 'test dir'
% CD: Unable to change current directory to: test.
% Execution halted at: $MAIN$
GDL> cd, '"test dir"'
GDL> $pwd
/tmp/test dir
GDL>

Discussion

  • Alain C.
    Alain C.
    2013-07-01

    thanks to my student Nodar, this should work now, including consecutive white spaces

    file_mkdir,'$HOME/toto to2 ty'
    cd, '$HOME/toto to2 ty', cur=cur_old
    cd, cur=cur_new
    print, cur_new
    cd, cur_old

    Please report any trouble

    Alain

     
  • Alain C.
    Alain C.
    2013-07-01

    • status: open --> closed-fixed
    • Group: --> v1.0 (example)