bashのINVOCATION
man bashで確認
A login shell is one whose first character of argument zero is a -, or one started with the --login option.
ログインシェルは、第0引数の最初の文字が-のシェル、または--loginオプションで起動したシェル
感想:su - rootの-の意味はこれか!!
An interactive shell is one started without non-option arguments (略) and without the -c option whose standard input and error are both connected to terminals (略), or one started with the -i option.
インタラクティブシェルはオプションでない引数がなく、かつ 標準入力とエラー出力をともにターミナルに接続する-cオプションが指定されていないシェル
または、-iオプションで起動したシェル
1つ上のログインシェルは、interactiveなloginシェルということになりそう
When bash is invoked as an interactive login shell, or as a non-interactive shell with the --login option,
it first reads and executes commands from the file /etc/profile, if that file exists.
After reading that file, it looks for ~/.bash_profile, ~/.bash_login, and ~/.profile, in that order,
読み込むファイルの順番が記載されている!