Path
shell - which one of these paths has the priority: /usr or /usr/local - Unix & Linux Stack Exchange
set via /etc/paths.d
directly
- see Change order of PATH entries on Mac OS X | Daniel Hepper and MacOS - Set / Change $PATH Variable Command - nixCraft )
Shell scripts
Permissions
First, it’s useful for the script file to begin with a shebang and reference to the shell you want to use:
#!/bin/bash
...
Next, check the script file’s permissions to verify that the executable bit is set:
ls -l script-filename.sh
To update:
chmod a+x