just ran someone's script and it printed out the message "error: please check your /home/josef/bin:/home/josef/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games: environment variable"

· · Web · 1 · 2 · 8

@ekaitz_zarraga someone had done $PATH instead of \$PATH or whatever

@jk I had a script written by a coworker that overwrote PATH because he thought PATH was a great name for a variable.
The script exploded the next line when he wanted to do an ls.


@ekaitz_zarraga @jk It's usually a good idea to make variables internal to a script lower case. That's what I do.

Then there are people who use actual local variables, but that's too annoying. 🙂

Sign in to participate in the conversation

Server run by the main developers of the project 🐘 It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!