]>
Commit | Line | Data |
---|---|---|
d1883e28 MT |
1 | --- bash-3.1/shell.c.login 2006-01-13 16:52:14.000000000 +0000 |
2 | +++ bash-3.1/shell.c 2006-01-13 16:52:15.000000000 +0000 | |
3 | @@ -1543,9 +1543,10 @@ | |
4 | any startup files; just try to be more like /bin/sh. */ | |
5 | shell_name = argv0 ? base_pathname (argv0) : PROGRAM; | |
6 | ||
7 | - if (*shell_name == '-') | |
8 | + if (argv0 && *argv0 == '-') | |
9 | { | |
10 | - shell_name++; | |
11 | + if (*shell_name == '-') | |
12 | + shell_name++; | |
13 | login_shell++; | |
14 | } | |
15 |