7 Bug-Reported-by: Vincent Menegaux <vincent.menegaux@gmail.com>
9 Bug-Reference-URL: https://savannah.gnu.org/patch/?10070
13 Multiple `!' tokens should toggle negation of an expression in a [[
14 conditional command, instead of simply negating the expression.
16 Patch (apply with `patch -p0'):
18 *** ../bash-20210515/parse.y 2021-04-21 15:32:50.000000000 -0400
19 --- parse.y 2021-05-24 11:53:30.000000000 -0400
24 ! term->flags |= CMD_INVERT_RETURN;
26 else if (tok == WORD && yylval.word->word[0] == '-' && yylval.word->word[1] && yylval.word->word[2] == 0 && test_unop (yylval.word->word))
30 ! term->flags ^= CMD_INVERT_RETURN;
32 else if (tok == WORD && yylval.word->word[0] == '-' && yylval.word->word[1] && yylval.word->word[2] == 0 && test_unop (yylval.word->word))
34 *** ../bash-20210515/y.tab.c 2021-05-14 15:50:41.000000000 -0400
35 --- y.tab.c 2021-05-24 16:35:55.000000000 -0400
40 ! term->flags |= CMD_INVERT_RETURN;
42 else if (tok == WORD && yylval.word->word[0] == '-' && yylval.word->word[1] && yylval.word->word[2] == 0 && test_unop (yylval.word->word))
46 ! term->flags ^= CMD_INVERT_RETURN;
48 else if (tok == WORD && yylval.word->word[0] == '-' && yylval.word->word[1] && yylval.word->word[2] == 0 && test_unop (yylval.word->word))
50 *** ../bash-5.1/patchlevel.h 2020-06-22 14:51:03.000000000 -0400
51 --- patchlevel.h 2020-10-01 11:01:28.000000000 -0400
54 looks for to find the patch level (for the sccs version string). */
56 ! #define PATCHLEVEL 15
58 #endif /* _PATCHLEVEL_H_ */
60 looks for to find the patch level (for the sccs version string). */
62 ! #define PATCHLEVEL 16
64 #endif /* _PATCHLEVEL_H_ */