Showing posts with label cmd. Show all posts

判断当前bash是否为login shell

echo "$0"
如果显示`-bash'则说明是login shell
如果显示`bash'则说明不是login shell

how to determine if the current shell is a login shell?