var-op-patsub () { run-file var-op-patsub "$@" } run-file () { local spec_name=$1; shift; sh-spec spec/$spec_name.test.sh --compare-shells --oils-bin-dir $PWD/bin "$@" }
spec test index / oilshell.org
93 passed, 3 OK, 1 not implemented, 13 BUG, 2 failed, 0 timeouts, 0 cases skipped 2 failed under osh
mksh | 1 Pattern replacement on unset variable stdout: -- status=0 --stderr: |
mksh | 7 Replace char class stdout: xx_xx_xx xx_xx_xxstderr: |
mksh | 11 Confusing unquoted slash matches bash (and ash) stdout: /_/ c_cstderr: |
zsh | 11 Confusing unquoted slash matches bash (and ash) stdout: /c//c_/c/ /_/stderr: |
mksh | 12 Synthesized ${x///} bug (similar to above) stdout: ambiguous: slash / brace } hi quoted: slash brace } histderr: |
zsh | 12 Synthesized ${x///} bug (similar to above) stdout: ambiguous: slash / brace } hi quoted: slash / brace } histderr: |
mksh | 15 Replace backslash stdout: [_] [_] [\_] [_]stderr: |
zsh | 15 Replace backslash stdout: [_] [_] [\_] [_]stderr: |
zsh | 17 Substitute glob characters in pattern, quoted and unquoted stdout: a-b a-bstderr: |
mksh | 18 Substitute one unicode character (UTF-8) stdout: _μ_ and _μ_ _μ_ and _μ_ _μ_ and _μ_stderr: |
osh | 19 When LC_ALL=C, pattern ? doesn't match multibyte character [osh stdout] Expected '_\xce\xbc_ and _\xce\xbc_\n_\xce\xbc_ and _\xce\xbc_\n_\xce\xbc_ and _\xce\xbc_\n\nfoo and foo\nfoo and _y_\n_x_ and foo\n' Got 'foo and foo\nfoo and _\xce\xbc_\n_\xce\xbc_ and foo\n\nfoo and foo\nfoo and _y_\n_x_ and foo\n' stdout: foo and foo foo and _μ_ _μ_ and foo foo and foo foo and _y_ _x_ and foostderr: |
mksh | 22 patsub with single quotes and hyphen in character class (regression) stdout: helloworldstderr: |
osh | 23 patsub with [^]] [osh stdout] Expected 'ab^cd^\n', got 'zzzzzz\n' stdout: zzzzzzstderr: |
bash | 24 [a-z] Invalid range end is syntax error stdout: fooz status=0stderr: |
mksh | 24 [a-z] Invalid range end is syntax error stdout: fooz status=0stderr: |
zsh | 24 [a-z] Invalid range end is syntax error stdout: fooz status=0stderr: |
zsh | 25 Pattern is empty $foo$bar -- regression for infinite loop stdout: bar-barfbarobarobar-stderr: |
mksh | 26 Chromium from http://www.oilshell.org/blog/2016/11/07.html stdout: /foo/bar/baz \/foo\/bar\/bazstderr: |
zsh | 26 Chromium from http://www.oilshell.org/blog/2016/11/07.html stdout: stderr: |