2 # no bashisms so it can be used in debian profile run by dash
3 # --start adds to start of path, which will give it highest priority
4 # --ifexists will add to path only if the directory exists
10 while [ "$1" = --* ]; do
11 if [ "$1" = --start ]; then
13 elif [ "$1" = --ifexists ]; then
22 [ "$x" = "$y" ] && found
=true
26 if ! $ifexists ||
[ -d $x ]; then
27 if [ ! "$PATH" ]; then