Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Reading difficult directory name correctly:



I may have asked this before but I can't remember the answer.  So the directory below is created automatically by certain software:

    $ls drwxr-xr-x 2      4096 2020-10-02/19:58:13 Sky above 49°30'N 123°30'W at Sat 2020 Oct 3 5:35_files/


Tab completion seems to put backslashes where needed but the " _files  " is left off:
    $ rm -r Sky\ above\ 49°30\'N\ 123°30\'W\ at\ Sat\ 2020\ Oct\ 3\ 5:35

    rm: cannot remove "Sky above 49°30'N 123°30'W at Sat 2020 Oct 3 5:35": No such file or directory

Is there a fix for this?  Not a big deal since just typing in the "  _files   " works fine, still I'm expecting the underscore to cause no issues.






Messages sorted by: Reverse Date, Date, Thread, Author