-bash:这表明这个bash是个login shell。login shell 与普通的 shell 在启动时读取的配置行为是不一样的,login shell会读取:/etc/profile,~/.bash_profile,~/.bash_login,~/.profile。但普通shell是没有加载这堆启动配置的。具体可以在manpage中找到具体说明,INVOCATION 章节A login shell is one whose first character of argument zero is a -, or one started with the --login option.
-bash:这表明这个bash是个login shell。
login shell 与普通的 shell 在启动时读取的配置行为是不一样的,login shell会读取:/etc/profile,~/.bash_profile,~/.bash_login,~/.profile。但普通shell是没有加载这堆启动配置的。
具体可以在manpage中找到具体说明,INVOCATION 章节
A login shell is one whose first character of argument zero is a -, or one started with the --login option.