sh: How to extend environment variables?
bash, command-line, sh, shell
Solution
Just assign it a new value that includes the old:
PATH=/new/path:${PATH}
Problem
Everywhere you can read how to replace environment variables. But I want to insert a new path at the beginning of my $PATH variable. What's the simplest way to do this using sh?