← Back to context

Comment by necovek

16 days ago

On non-English keyboards (Serbian/Croatian/Slovenian, but as they are based on QWERTZ, I imagine German and possibly others too), both "+" and "-" might not require pressing Shift either, and are much better characters than comma.

These are inconvenient for doing anything with the script files except invoking them, because these characters introduce command-line options.

  • Which was the point here, wasn't it? Script files that you will be commonly running and only editing rarely, I'd optimize for how easy they are to run, not operate other commands on them from within a shell.

    • Naming a file with a "-" as the first character means you have to be careful to use "--" with commands to signify the end of options as otherwise the filename will be interpreted as being additional options with unexpected results.

      e.g. ls -l -- *

      Even when you're not deliberately operating on the commands, it's too easy to get caught out by it with wildcards etc.

      2 replies →