Closed massimo-cassandro closed 1 month ago
I personally recommend against using ~
in scripts like that, as it makes it harder to quote the path, which is useful if the path possibly includes spaces or special characters.
# not ideal - breaks on spaces and some special characters
MYPATH=~/path/to/something
# not ideal - stores the actual tilde (~) character
MYPATH="~/path/to/something"
# better - more resilient against spaces and special chars
MYPATH="$HOME/path/to/something"
Fixed in ca8015b27bdc6d8e1201b1ad722f4ae3c38970d0
I think that the
=~
sequence may create confusione in bash scripts, when the~
character is used to reference the user home dir:becomes
Could it be useful to create new ligatures sets for this?