| case | bash | zsh | description |
| 0 | pass | pass | Match is unanchored at both ends |
| 1 | pass | pass | Failed match |
| 2 | pass | pass | Regex quoted with \ -- preferred in bash |
| 3 | ok | pass | Regex quoted with single quotes |
| details | |||
| 4 | ok | pass | Regex quoted with double quotes |
| details | |||
| 5 | pass | pass | Fix single quotes by storing in variable |
| 6 | pass | pass | Fix single quotes by storing in variable |
| 7 | ok | pass | Double quoting pat variable -- again bash doesn't like it. |
| details | |||
| 8 | pass | ok | Regex with == and not =~ is parse error, different lexer mode required |
| details | |||
| 9 | pass | pass | Omitting ( ) |
| 10 | pass | ok | Malformed regex |
| details | |||
| 11 | pass | pass | Regex with char class |
| 12 | pass | N-I | Operators lose meaning in () in regex state (BASH_REGEX_CAHRS) |
| details | |||
| 13 | pass | N-I | Regex with | |
| details |
21 passed, 5 ok, 2 known unimplemented, 0 known bugs, 0 failed, 0 skipped
| bash | 3 Regex quoted with single quotes stdout: stderr: |
| bash | 4 Regex quoted with double quotes stdout: stderr: |
| bash | 7 Double quoting pat variable -- again bash doesn't like it. stdout: stderr: |
| zsh | 8 Regex with == and not =~ is parse error, different lexer mode required stdout: stderr: |
| zsh | 10 Malformed regex stdout: stderr: zsh: parse error near `)' |
| zsh | 12 Operators lose meaning in () in regex state (BASH_REGEX_CAHRS) stdout: stderr: zsh: parse error near `<' |
| zsh | 13 Regex with | stdout: stderr: zsh: parse error near `|' |