bash/bash-cond-rmatch.patch
2008-06-05 15:43:36 +00:00

16 lines
588 B
Diff

diff -up bash-3.2/execute_cmd.c.cond-rmatch bash-3.2/execute_cmd.c
--- bash-3.2/execute_cmd.c.cond-rmatch 2008-06-05 17:21:20.000000000 +0200
+++ bash-3.2/execute_cmd.c 2008-06-05 17:23:54.000000000 +0200
@@ -2560,8 +2560,9 @@ execute_cond_node (cond)
arg1 = cond_expand_word (cond->left->op, 0);
if (arg1 == 0)
arg1 = nullstr;
- arg2 = cond_expand_word (cond->right->op,
- (rmatch && shell_compatibility_level > 31) ? 2 : (patmatch ? 1 : 0));
+
+ arg2 = cond_expand_word (cond->right->op, patmatch ? 1 : 0);
+
if (arg2 == 0)
arg2 = nullstr;