Issue
Bash that comes with macOS is of version 3.2.57
(the '/bin/bash'), however, I also have Bash version 5.1.12
which lives in '/opt/local/bin'.
I'm interested in why the latter is used when I execute 'bash' despite that '/bin' goes after '/opt/local/bin' in the $PATH
variable?
Solution
It turns out that the $PATH is read from left to right and the first match takes precedence
Answered By - felps321 Answer Checked By - Katrina (PHPFixing Volunteer)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.