Commit 6c14860
committed
Do not crash on nested negative extglobs
This is still doing the wrong thing wrt Bash 4.3 on *(!(*.js)) not
matching foo.js, though. Same with +(!(*.js)).
+(!(*.js)) is like !(*.js) or !(*.js)!(*.js) or ...
Thanks to koala_man in IRC #bash channel on Freenode for helping
understand this.
Nevertheless, this fixes #68, albeit imperfectly.1 parent 5adde89 commit 6c14860
2 files changed
Lines changed: 35 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
570 | 570 | | |
571 | 571 | | |
572 | 572 | | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
573 | 586 | | |
574 | 587 | | |
575 | 588 | | |
576 | 589 | | |
577 | | - | |
| 590 | + | |
578 | 591 | | |
579 | 592 | | |
580 | 593 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
75 | 96 | | |
76 | 97 | | |
77 | 98 | | |
| |||
0 commit comments