bash4.3 # pwd
/bin
bash4.3 # ll sh
lrwxrwxrwx. 1 root root 4 May 17 22:22 sh -> bash
bash4.3 # ll bash
-rwxr-xr-x. 1 root root 1072056 May 17 22:22 bash
bash4.3 # bash
bash4.3 # sh
sh-4.3#
私のOSはfedora 24(デフォルトのGNOMEバージョン)です。
例から、我々は知ることができます:下/bin、bashバイナリ実行ファイルです。shへのソフトリンクbashです。
したがって、私の知る限り、type bash and press enterと同じ結果を正確にもたらす必要がありますtype sh and press enter。
とき私はtype bash and press enter、私が得る[root@localhost bin]#予想通り。
しかし、もし私ならtype sh and press enter、私は驚くほど得るsh-4.3#。
原因は何ですか?