On Sat, Mar 02, 2019 at 08:47:43PM -0800, L A Walsh wrote:
> hb=~law/bin (line#4)

Well, that's just a syntax error.

> if ! [[ $hb =~ $PATH ]]; then export PATH="$hb:$hl:$PATH"; fi

What is the logic behind that regex check?  It looks completely wrong.

If the intent of this code is "check whether $hb is already in $PATH",
then this code is incorrect.

Reply via email to