Skip Navigation
146 留言
  • not sure why the default behavior is this:

    file\ name\ with\ a\ bunch\ of\ spaces

    instead of this:

    "file name with a bunch of spaces"

    but you can just press " before pressing tab to auto-complete, and it will use the 2nd form

    • Because quoting requires token expansion (e.g. ~ to /home/you). Escaping gives you a much shorter path in that case.

      That said I'm with you, full quoted paths read better to me.

    • I mean, at least in Bash tools like ls do use quotes by default:

       shell
          
      $ ls
       filename_without_space  'filename with space'
      
        

      But yeah, tab expansion uses backslashes, sadly.

  • Windows is stupid as shit, trying to shift+right click > open Powershell in a path containing a space results in it throwing an error, and you have to paste the path in yourself anyway

  • i y'all just started using fish shell, you'd have proper shell completions and argument splitting that doesn't care about spaces in file names

  • Can't relate. I use shell all the time, and I always use spaces in file paths, especially to make sure scripts I make still work then

  • The number of keystrokes needed to type an underscore is the same that you need to type backslash space, so I don't see how underscores are in improvement

146 留言