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

#1 Directory names with spaces

Version 2.1
open-remind
6
2006-05-07
2006-04-30
Martin Geisler
No

You currently cannot switch to a directory with spaces
in its name. Spaces in normal file names are no
problem, they are handled just like any other shell.

The problem is that PHP Shell doesn't decode the string
before passing it to the PHP chdir() function. So any
quoting or escaping done by the user is left as-is in
the call to chdir().

Discussion

  • Martin Geisler
    Martin Geisler
    2006-05-07

    • labels: --> Built-in commands
    • assigned_to: nobody --> mgeisler
    • status: open --> open-remind
     
  • Martin Geisler
    Martin Geisler
    2006-05-07

    Logged In: YES
    user_id=1264592

    Actually one can switch to directories with spaces in the
    name, one simply don't quote the spaces in any special way.
    PHP Shell deals with the 'cd' command as an internal
    command and naïvely does a chdir() call with the path found
    after the 'cd' command.

    PHP Shell should probably remove quotes like other shells or
    this should be documented.