make $0 available to non-interactive shell startup files

This commit is contained in:
Chet Ramey
2021-07-28 10:27:04 -04:00
parent 6650b4de61
commit 6c84d09c19
6 changed files with 52 additions and 13 deletions
+1 -1
View File
@@ -569,7 +569,7 @@ any_signals_trapped ()
register int i;
for (i = 1; i < NSIG; i++)
if (sigmodes[i] & SIG_TRAPPED)
if ((sigmodes[i] & SIG_TRAPPED) && (sigmodes[i] & SIG_IGNORED) == 0)
return i;
return -1;
}