9133 |
@evindex PS2 |
@evindex PS2 |
9134 |
@evindex PS4 |
@evindex PS4 |
9135 |
These variables should not matter for shell scripts, since they are |
These variables should not matter for shell scripts, since they are |
9136 |
supposed affect only interactive shells. However, at least one shell |
supposed to affect only interactive shells. However, at least one |
9137 |
(the pre-3.0 UWIN @command{ksh}) gets confused about whether it is |
shell (the pre-3.0 @sc{uwin} @command{ksh}) gets confused about |
9138 |
interactive, which means that (for example) a @env{PS1} with a side |
whether it is interactive, which means that (for example) a @env{PS1} |
9139 |
effect can unexpectedly modify @samp{$?}. To work around this bug, |
with a side effect can unexpectedly modify @samp{$?}. To work around |
9140 |
Autoconf-generated scripts do something like this: |
this bug, Autoconf-generated scripts do something like this: |
9141 |
|
|
9142 |
@example |
@example |
9143 |
(unset ENV) >/dev/null 2>&1 && unset ENV MAIL MAILPATH |
(unset ENV) >/dev/null 2>&1 && unset ENV MAIL MAILPATH |