When you edit your $PATH environment variable, you don't have to use quotes
$PATH
e.g. the following is perfectly valid
PATH=$PATH:/my/new/path/
I always thought you had to do the following, just in case $PATH expanded into something with a space, but it turns out it's fine either way
PATH="$PATH:/my/new/path/"
Whether quotes are needed in different languages is so inconsistent 😄
Some comments have been hidden by the post's author - find out more
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
When you edit your
$PATHenvironment variable, you don't have to use quotese.g. the following is perfectly valid
I always thought you had to do the following, just in case $PATH expanded into something with a space, but it turns out it's fine either way
Whether quotes are needed in different languages is so inconsistent 😄