Check Shell
- colors.bsh
Script to inspect the shell you are running, to make sure you are running the expected shell. Commonly used in script you source
- Arguments:
$1...- Valid names of shells- Return Value:
0- Check passed1- Check failed
- Uses:
/procorps.psmust support the-pand-oflags.
Example
check_shell bash
check_shell zsh bash
check_shell csh fish