commit bash-20060112 snapshot

This commit is contained in:
Chet Ramey
2011-12-03 22:43:58 -05:00
parent 20587658e9
commit 11a6f9a95f
40 changed files with 11605 additions and 629 deletions
+3 -2
View File
@@ -1533,9 +1533,10 @@ set_shell_name (argv0)
any startup files; just try to be more like /bin/sh. */
shell_name = argv0 ? base_pathname (argv0) : PROGRAM;
if (*shell_name == '-')
if (argv0 && *argv0 == '-')
{
shell_name++;
if (*shell_name == '-')
shell_name++;
login_shell++;
}