Re: Please store source file name + line number for all functions define
From:
Greg Wooledge
Subject:
Re: Please store source file name + line number for all functions defined whether or not bashdb is running.
Date:
Mon, 4 Mar 2019 08:16:12 -0500
User-agent:
NeoMutt/20170113 (1.7.2)
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.