Elektrine lite

← Feed

@TwistedTree@piefed.social

Post #2644341

2026-05-17 16:49 UTC

You should be using a variable not an alias. Variables in bash have a few sharp edges; one of which is that spaces act as a delimiter and turn the variable into a list. The other being that sometimes escaping and unescaping the contents of a variable can be stupidly tricky. This is why a lot of people who use bash do not like spaces in directory or file names.

Replies (1)

  • Thanks for the tip, but escaping and unescaping sounds tedious, since I use spaces in both directory and file names. What I like about aliases here is that I have one central location to set them up and change them. If I ever were to forget what aliases I have it’s just about opening the file and looking.

    Open ##2644671