20/05/19 16:14:39 41YM3k+D.net
URLリンク(unix.stackexchange.com)
You can use the command:
$ echo $SHELL
to find out the shell from within the script.
No. $SHELL is the shell of choice of the user. Initialised from the login shell of the user.
Nothing to do with the currently running shell.
いいえ。$ SHELLはユーザーが選択するシェルです。ユーザーのログインシェルから初期化されます。現在実行中のシェルとは関係ありません