With /bin/bash, how would I detect if a user has a specific directory in their $PATH variable?
/bin/bash
For example
if [ -p "$HOME/bin" ]; then echo "Your path is missing ~/bin, you might want to add it." else echo "Your path is correctly set" fi