第一个登录进程名称似乎设置为-bash
,但是如果我使用subshell,它将变为bash
。例如:
root@nowere:~# echo $0
-bash
root@nowere:~# bash
root@nowere:~# echo $0
bash
-bash
导致某些脚本失败,例如 . /usr/share/debconf/confmodule
exec /usr/share/debconf/frontend -bash
Can't exec "-bash": No such file or directory at /usr/share/perl/5.14/IPC/Open3.pm line 186.
open2: exec of -bash failed at /usr/share/perl5/Debconf/ConfModule.pm line 59
有人知道为什么$0
设置为-bash
吗?
1
@RaduRădeanu发现猫的无用!
—
gniourf_gniourf 2013年