mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-07-10 05:30:49 +02:00
commit bash-20060112 snapshot
This commit is contained in:
@@ -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++;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user