commit bash-20191127 snapshot

This commit is contained in:
Chet Ramey
2019-12-02 17:23:48 -05:00
parent fc35c477cd
commit 091c6bc481
34 changed files with 5916 additions and 5603 deletions
+5
View File
@@ -395,6 +395,11 @@ set_posix_mode (on_or_off, option_name)
int on_or_off;
char *option_name;
{
/* short-circuit on no-op */
if ((on_or_off == FLAG_ON && posixly_correct) ||
(on_or_off == FLAG_OFF && posixly_correct == 0))
return 0;
posixly_correct = on_or_off == FLAG_ON;
if (posixly_correct == 0)
unbind_variable_noref ("POSIXLY_CORRECT");