Results for extglob-match.test.sh

statusbashdashashzshmkshkshtoyshsushbrushosh
pass 2900222261232825
N-I 0000320001
BUG 0000410000
FAIL 02929270028613
total29292929292929292929
casebashdashashzshmkshkshtoyshsushbrushoshdescription
0pass FAIL FAIL FAIL pass pass FAIL pass pass pass @ matches exactly one
detailsdetailsdetailsdetails
1pass FAIL FAIL FAIL pass pass FAIL pass pass pass @() with variable arms
detailsdetailsdetailsdetails
2pass FAIL FAIL FAIL N-I pass FAIL pass pass FAIL extglob in variable
detailsdetailsdetailsdetailsdetailsdetails
3pass FAIL FAIL FAIL pass pass FAIL FAIL pass pass Matching literal '@(cc)'
detailsdetailsdetailsdetailsdetails
4pass FAIL FAIL FAIL BUG pass FAIL pass pass pass nested @()
detailsdetailsdetailsdetailsdetails
5pass FAIL FAIL FAIL pass pass FAIL FAIL pass pass nested @() with quotes and vars
detailsdetailsdetailsdetailsdetails
6pass FAIL FAIL FAIL pass pass FAIL pass pass pass ? matches 0 or 1
detailsdetailsdetailsdetails
7pass FAIL FAIL FAIL pass pass FAIL pass pass pass + matches 1 or more
detailsdetailsdetailsdetails
8pass FAIL FAIL FAIL pass pass FAIL pass pass pass * matches 0 or more
detailsdetailsdetailsdetails
9pass FAIL FAIL FAIL pass pass FAIL pass pass pass simple repetition with *(foo) and +(Foo)
detailsdetailsdetailsdetails
10pass FAIL FAIL FAIL pass pass FAIL pass pass pass ! matches none
detailsdetailsdetailsdetails
11pass FAIL FAIL FAIL pass pass FAIL pass pass pass match is anchored
detailsdetailsdetailsdetails
12pass FAIL FAIL FAIL pass pass FAIL pass pass pass repeated match is anchored
detailsdetailsdetailsdetails
13pass FAIL FAIL FAIL pass pass FAIL pass pass pass repetition with glob
detailsdetailsdetailsdetails
14pass FAIL FAIL FAIL pass pass FAIL pass pass pass No brace expansion in ==
detailsdetailsdetailsdetails
15pass FAIL FAIL FAIL pass pass FAIL pass pass pass adjacent extglob
detailsdetailsdetailsdetails
16pass FAIL FAIL FAIL pass pass FAIL pass pass pass nested extglob
detailsdetailsdetailsdetails
17pass FAIL FAIL FAIL pass pass FAIL pass pass pass extglob empty string
detailsdetailsdetailsdetails
18pass FAIL FAIL FAIL pass pass FAIL pass pass pass extglob empty pattern
detailsdetailsdetailsdetails
19pass FAIL FAIL FAIL pass pass FAIL FAIL pass pass case with extglob
detailsdetailsdetailsdetailsdetails
20pass FAIL FAIL FAIL pass pass FAIL FAIL pass pass [[ $x == !($str) ]]
detailsdetailsdetailsdetailsdetails
21pass FAIL FAIL FAIL N-I N-I FAIL FAIL FAIL FAIL Turning extglob on changes the meaning of [[ !(str) ]] in bash
detailsdetailsdetailsdetailsdetailsdetailsdetailsdetailsdetails
22pass FAIL FAIL FAIL pass pass FAIL FAIL pass pass With extglob on, !($str) on the left or right of == has different meanings
detailsdetailsdetailsdetailsdetails
23pass FAIL FAIL FAIL BUG BUG FAIL pass pass FAIL extglob inside arg word
detailsdetailsdetailsdetailsdetailsdetailsdetails
24pass FAIL FAIL pass N-I N-I pass pass pass pass extglob is not detected in regex!
detailsdetailsdetailsdetails
25pass FAIL FAIL pass BUG pass FAIL pass pass pass regular glob of single unicode char
detailsdetailsdetailsdetails
26pass FAIL FAIL FAIL BUG pass FAIL pass pass pass extended glob of single unicode char
detailsdetailsdetailsdetailsdetails
27pass FAIL FAIL FAIL pass pass FAIL pass pass N-I Extended glob in ${x//pat/replace}
detailsdetailsdetailsdetailsdetails
28pass FAIL FAIL FAIL pass pass FAIL pass pass pass Extended glob in ${x%PATTERN}
detailsdetailsdetailsdetails
156 passed, 0 OK, 6 not implemented, 5 BUG, 123 failed, 0 timeouts, 0 cases skipped
3 failed under osh

Details on runs that didn't PASS

dash0 @ matches exactly one

[dash stdout] Expected 'TRUE\nFALSE\n', got ''
[dash status] Expected 0, got 2

stdout:
stderr: 
dash: 1: shopt: not found
dash: 2: Syntax error: "(" unexpected
ash0 @ matches exactly one

[ash stdout] Expected 'TRUE\nFALSE\n', got ''
[ash status] Expected 0, got 2

stdout:
stderr: 
ash: shopt: not found
ash: syntax error: unexpected "("
zsh0 @ matches exactly one

[zsh stdout] Expected 'TRUE\nFALSE\n', got 'FALSE\n'

stdout:
FALSE
stderr:
zsh: command not found: shopt
toysh0 @ matches exactly one

[toysh stdout] Expected 'TRUE\nFALSE\n', got 'FALSE\n'

stdout:
FALSE
stderr:
sh: shopt: No such file or directory
dash1 @() with variable arms

[dash stdout] Expected 'TRUE\nFALSE\n', got ''
[dash status] Expected 0, got 2

stdout:
stderr: 
dash: 1: shopt: not found
dash: 4: Syntax error: "(" unexpected
ash1 @() with variable arms

[ash stdout] Expected 'TRUE\nFALSE\n', got ''
[ash status] Expected 0, got 2

stdout:
stderr: 
ash: shopt: not found
ash: syntax error: unexpected "("
zsh1 @() with variable arms

[zsh stdout] Expected 'TRUE\nFALSE\n', got 'FALSE\n'

stdout:
FALSE
stderr:
zsh: command not found: shopt
toysh1 @() with variable arms

[toysh stdout] Expected 'TRUE\nFALSE\n', got 'FALSE\n'

stdout:
FALSE
stderr:
sh: shopt: No such file or directory
dash2 extglob in variable

[dash stdout] Expected 'TRUE\nTRUE\nFALSE\nFALSE\nFALSE\n', got ''
[dash status] Expected 0, got 2

stdout:
stderr: 
dash: 1: shopt: not found
dash: 3: Syntax error: "(" unexpected
ash2 extglob in variable

[ash stdout] Expected 'TRUE\nTRUE\nFALSE\nFALSE\nFALSE\n', got ''
[ash status] Expected 0, got 2

stdout:
stderr: 
ash: shopt: not found
ash: syntax error: unexpected "("
zsh2 extglob in variable

[zsh stdout] Expected 'TRUE\nTRUE\nFALSE\nFALSE\nFALSE\n', got 'FALSE\nFALSE\nFALSE\n'

stdout:
FALSE
FALSE
FALSE
stderr:
zsh: command not found: shopt
mksh2 extglob in variable

stdout:
FALSE
FALSE
FALSE
stderr:
mksh: <stdin>[1]: shopt: not found
toysh2 extglob in variable

[toysh stdout] Expected 'TRUE\nTRUE\nFALSE\nFALSE\nFALSE\n', got 'FALSE\nFALSE\nFALSE\n'

stdout:
FALSE
FALSE
FALSE
stderr:
sh: shopt: No such file or directory
[[: too many arguments
[[: too many arguments
osh2 extglob in variable

[osh stdout] Expected 'TRUE\nTRUE\nFALSE\nFALSE\nFALSE\n', got ''
[osh status] Expected 0, got 1

stdout:
stderr: 
  g=--@(help|verbose)
    ^~
[ stdin ]:3: fatal: extended glob not allowed in this word
dash3 Matching literal '@(cc)'

[dash stdout] Expected 'status=0\nstatus=1\nstatus=0\nstatus=1\n', got ''
[dash status] Expected 0, got 2

stdout:
stderr: 
dash: 1: Syntax error: "(" unexpected
ash3 Matching literal '@(cc)'

[ash stdout] Expected 'status=0\nstatus=1\nstatus=0\nstatus=1\n', got ''
[ash status] Expected 0, got 2

stdout:
stderr: 
ash: syntax error: unexpected "("
zsh3 Matching literal '@(cc)'

[zsh stdout] Expected 'status=0\nstatus=1\nstatus=0\nstatus=1\n', got 'status=1\nstatus=1\nstatus=1\nstatus=1\n'

stdout:
status=1
status=1
status=1
status=1
stderr:
zsh: command not found: shopt
toysh3 Matching literal '@(cc)'

[toysh stdout] Expected 'status=0\nstatus=1\nstatus=0\nstatus=1\n', got 'status=1\nstatus=1\nstatus=1\nstatus=1\n'

stdout:
status=1
status=1
status=1
status=1
stderr:
sh: shopt: No such file or directory
sush3 Matching literal '@(cc)'

[sush stdout] Expected 'status=0\nstatus=1\nstatus=0\nstatus=1\n', got 'status=0\nstatus=0\nstatus=0\nstatus=0\n'

stdout:
status=0
status=0
status=0
status=0
stderr:
dash4 nested @()

[dash stdout] Expected 'TRUE\nTRUE\nTRUE\nFALSE\n', got 'FALSE\n'

stdout:
FALSE
stderr:
dash: 1: shopt: not found
dash: 3: [[: not found
dash: 4: [[: not found
dash: 5: [[: not found
dash: 6: [[: not found
ash4 nested @()

[ash stdout] Expected 'TRUE\nTRUE\nTRUE\nFALSE\n', got 'FALSE\n'

stdout:
FALSE
stderr:
ash: shopt: not found
zsh4 nested @()

[zsh stdout] Expected 'TRUE\nTRUE\nTRUE\nFALSE\n', got 'FALSE\n'

stdout:
FALSE
stderr:
zsh: command not found: shopt
mksh4 nested @()

stdout:
FALSE
stderr:
mksh: <stdin>[1]: shopt: not found
toysh4 nested @()

[toysh stdout] Expected 'TRUE\nTRUE\nTRUE\nFALSE\n', got 'FALSE\n'

stdout:
FALSE
stderr:
sh: shopt: No such file or directory
dash5 nested @() with quotes and vars

[dash stdout] Expected 'TRUE\n', got ''
[dash status] Expected 0, got 2

stdout:
stderr: 
dash: 1: shopt: not found
dash: 3: Syntax error: "(" unexpected
ash5 nested @() with quotes and vars

[ash stdout] Expected 'TRUE\n', got ''
[ash status] Expected 0, got 2

stdout:
stderr: 
ash: shopt: not found
ash: syntax error: unexpected "("
zsh5 nested @() with quotes and vars

[zsh stdout] Expected 'TRUE\n', got ''
[zsh status] Expected 0, got 1

stdout:
stderr: 
zsh: command not found: shopt
toysh5 nested @() with quotes and vars

[toysh stdout] Expected 'TRUE\n', got ''
[toysh status] Expected 0, got 1

stdout:
stderr: 
sh: shopt: No such file or directory
sush5 nested @() with quotes and vars

[sush stdout] Expected 'TRUE\n', got ''
[sush status] Expected 0, got 1

stdout:
stderr: 
dash6 ? matches 0 or 1

[dash stdout] Expected 'TRUE\nFALSE\n', got ''
[dash status] Expected 0, got 2

stdout:
stderr: 
dash: 1: shopt: not found
dash: 2: Syntax error: "(" unexpected
ash6 ? matches 0 or 1

[ash stdout] Expected 'TRUE\nFALSE\n', got ''
[ash status] Expected 0, got 2

stdout:
stderr: 
ash: shopt: not found
ash: syntax error: unexpected "("
zsh6 ? matches 0 or 1

[zsh stdout] Expected 'TRUE\nFALSE\n', got 'FALSE\n'

stdout:
FALSE
stderr:
zsh: command not found: shopt
toysh6 ? matches 0 or 1

[toysh stdout] Expected 'TRUE\nFALSE\n', got 'FALSE\n'

stdout:
FALSE
stderr:
sh: shopt: No such file or directory
dash7 + matches 1 or more

[dash stdout] Expected 'TRUE\nFALSE\n', got ''
[dash status] Expected 0, got 2

stdout:
stderr: 
dash: 1: shopt: not found
dash: 2: Syntax error: "(" unexpected
ash7 + matches 1 or more

[ash stdout] Expected 'TRUE\nFALSE\n', got ''
[ash status] Expected 0, got 2

stdout:
stderr: 
ash: shopt: not found
ash: syntax error: unexpected "("
zsh7 + matches 1 or more

[zsh stdout] Expected 'TRUE\nFALSE\n', got 'FALSE\n'

stdout:
FALSE
stderr:
zsh: command not found: shopt
toysh7 + matches 1 or more

[toysh stdout] Expected 'TRUE\nFALSE\n', got 'FALSE\n'

stdout:
FALSE
stderr:
sh: shopt: No such file or directory
dash8 * matches 0 or more

[dash stdout] Expected 'TRUE\nFALSE\n', got ''
[dash status] Expected 0, got 2

stdout:
stderr: 
dash: 1: shopt: not found
dash: 2: Syntax error: "(" unexpected
ash8 * matches 0 or more

[ash stdout] Expected 'TRUE\nFALSE\n', got ''
[ash status] Expected 0, got 2

stdout:
stderr: 
ash: shopt: not found
ash: syntax error: unexpected "("
zsh8 * matches 0 or more

[zsh stdout] Expected 'TRUE\nFALSE\n', got 'FALSE\n'

stdout:
FALSE
stderr:
zsh: command not found: shopt
toysh8 * matches 0 or more

[toysh stdout] Expected 'TRUE\nFALSE\n', got 'FALSE\n'

stdout:
FALSE
stderr:
sh: shopt: No such file or directory
dash9 simple repetition with *(foo) and +(Foo)

[dash stdout] Expected 'TRUE\nTRUE\n', got ''
[dash status] Expected 0, got 2

stdout:
stderr: 
dash: 1: shopt: not found
dash: 2: Syntax error: "(" unexpected
ash9 simple repetition with *(foo) and +(Foo)

[ash stdout] Expected 'TRUE\nTRUE\n', got ''
[ash status] Expected 0, got 2

stdout:
stderr: 
ash: shopt: not found
ash: syntax error: unexpected "("
zsh9 simple repetition with *(foo) and +(Foo)

[zsh stdout] Expected 'TRUE\nTRUE\n', got 'TRUE\n'
[zsh status] Expected 0, got 1

stdout:
TRUE
stderr:
zsh: command not found: shopt
toysh9 simple repetition with *(foo) and +(Foo)

[toysh stdout] Expected 'TRUE\nTRUE\n', got ''
[toysh status] Expected 0, got 1

stdout:
stderr: 
sh: shopt: No such file or directory
dash10 ! matches none

[dash stdout] Expected 'TRUE\nFALSE\n', got ''
[dash status] Expected 0, got 2

stdout:
stderr: 
dash: 1: shopt: not found
dash: 2: Syntax error: "(" unexpected
ash10 ! matches none

[ash stdout] Expected 'TRUE\nFALSE\n', got ''
[ash status] Expected 0, got 2

stdout:
stderr: 
ash: shopt: not found
ash: syntax error: unexpected "("
zsh10 ! matches none

[zsh stdout] Expected 'TRUE\nFALSE\n', got 'FALSE\n'

stdout:
FALSE
stderr:
zsh: command not found: shopt
toysh10 ! matches none

[toysh stdout] Expected 'TRUE\nFALSE\n', got 'FALSE\n'

stdout:
FALSE
stderr:
sh: shopt: No such file or directory
dash11 match is anchored

[dash stdout] Expected 'FALSE\nFALSE\nTRUE\n', got ''
[dash status] Expected 0, got 2

stdout:
stderr: 
dash: 1: shopt: not found
dash: 2: Syntax error: "(" unexpected
ash11 match is anchored

[ash stdout] Expected 'FALSE\nFALSE\nTRUE\n', got ''
[ash status] Expected 0, got 2

stdout:
stderr: 
ash: shopt: not found
ash: syntax error: unexpected "("
zsh11 match is anchored

[zsh stdout] Expected 'FALSE\nFALSE\nTRUE\n', got 'FALSE\nFALSE\n'
[zsh status] Expected 0, got 1

stdout:
FALSE
FALSE
stderr:
zsh: command not found: shopt
toysh11 match is anchored

[toysh stdout] Expected 'FALSE\nFALSE\nTRUE\n', got 'FALSE\nFALSE\n'
[toysh status] Expected 0, got 1

stdout:
FALSE
FALSE
stderr:
sh: shopt: No such file or directory
dash12 repeated match is anchored

[dash stdout] Expected 'FALSE\nFALSE\nTRUE\n', got ''
[dash status] Expected 0, got 2

stdout:
stderr: 
dash: 1: shopt: not found
dash: 2: Syntax error: "(" unexpected
ash12 repeated match is anchored

[ash stdout] Expected 'FALSE\nFALSE\nTRUE\n', got ''
[ash status] Expected 0, got 2

stdout:
stderr: 
ash: shopt: not found
ash: syntax error: unexpected "("
zsh12 repeated match is anchored

[zsh stdout] Expected 'FALSE\nFALSE\nTRUE\n', got 'FALSE\nFALSE\n'
[zsh status] Expected 0, got 1

stdout:
FALSE
FALSE
stderr:
zsh: command not found: shopt
toysh12 repeated match is anchored

[toysh stdout] Expected 'FALSE\nFALSE\nTRUE\n', got 'FALSE\nFALSE\n'
[toysh status] Expected 0, got 1

stdout:
FALSE
FALSE
stderr:
sh: shopt: No such file or directory
dash13 repetition with glob

[dash stdout] Expected 'TRUE\nFALSE\n', got ''
[dash status] Expected 0, got 2

stdout:
stderr: 
dash: 1: shopt: not found
dash: 3: Syntax error: "(" unexpected
ash13 repetition with glob

[ash stdout] Expected 'TRUE\nFALSE\n', got ''
[ash status] Expected 0, got 2

stdout:
stderr: 
ash: shopt: not found
ash: syntax error: unexpected "("
zsh13 repetition with glob

[zsh stdout] Expected 'TRUE\nFALSE\n', got 'TRUE\n'

stdout:
TRUE
stderr:
zsh: command not found: shopt
toysh13 repetition with glob

[toysh stdout] Expected 'TRUE\nFALSE\n', got 'FALSE\n'

stdout:
FALSE
stderr:
sh: shopt: No such file or directory
dash14 No brace expansion in ==

[dash stdout] Expected 'TRUE\nFALSE\n', got ''
[dash status] Expected 0, got 2

stdout:
stderr: 
dash: 1: shopt: not found
dash: 3: Syntax error: "(" unexpected
ash14 No brace expansion in ==

[ash stdout] Expected 'TRUE\nFALSE\n', got ''
[ash status] Expected 0, got 2

stdout:
stderr: 
ash: shopt: not found
ash: syntax error: unexpected "("
zsh14 No brace expansion in ==

[zsh stdout] Expected 'TRUE\nFALSE\n', got 'FALSE\n'

stdout:
FALSE
stderr:
zsh: command not found: shopt
toysh14 No brace expansion in ==

[toysh stdout] Expected 'TRUE\nFALSE\n', got 'FALSE\n'

stdout:
FALSE
stderr:
sh: shopt: No such file or directory
[[: too many arguments
dash15 adjacent extglob

[dash stdout] Expected 'TRUE\nTRUE\n', got ''
[dash status] Expected 0, got 2

stdout:
stderr: 
dash: 1: shopt: not found
dash: 3: Syntax error: "(" unexpected
ash15 adjacent extglob

[ash stdout] Expected 'TRUE\nTRUE\n', got ''
[ash status] Expected 0, got 2

stdout:
stderr: 
ash: shopt: not found
ash: syntax error: unexpected "("
zsh15 adjacent extglob

[zsh stdout] Expected 'TRUE\nTRUE\n', got ''
[zsh status] Expected 0, got 1

stdout:
stderr: 
zsh: command not found: shopt
toysh15 adjacent extglob

[toysh stdout] Expected 'TRUE\nTRUE\n', got ''
[toysh status] Expected 0, got 1

stdout:
stderr: 
sh: shopt: No such file or directory
dash16 nested extglob

[dash stdout] Expected 'TRUE\nTRUE\nTRUE\nFALSE\n', got ''
[dash status] Expected 0, got 2

stdout:
stderr: 
dash: 1: shopt: not found
dash: 3: Syntax error: "(" unexpected
ash16 nested extglob

[ash stdout] Expected 'TRUE\nTRUE\nTRUE\nFALSE\n', got ''
[ash status] Expected 0, got 2

stdout:
stderr: 
ash: shopt: not found
ash: syntax error: unexpected "("
zsh16 nested extglob

[zsh stdout] Expected 'TRUE\nTRUE\nTRUE\nFALSE\n', got 'FALSE\n'

stdout:
FALSE
stderr:
zsh: command not found: shopt
toysh16 nested extglob

[toysh stdout] Expected 'TRUE\nTRUE\nTRUE\nFALSE\n', got 'FALSE\n'

stdout:
FALSE
stderr:
sh: shopt: No such file or directory
dash17 extglob empty string

[dash stdout] Expected 'FALSE\nTRUE\n', got ''
[dash status] Expected 0, got 2

stdout:
stderr: 
dash: 1: shopt: not found
dash: 2: Syntax error: "(" unexpected
ash17 extglob empty string

[ash stdout] Expected 'FALSE\nTRUE\n', got ''
[ash status] Expected 0, got 2

stdout:
stderr: 
ash: shopt: not found
ash: syntax error: unexpected "("
zsh17 extglob empty string

[zsh stdout] Expected 'FALSE\nTRUE\n', got 'FALSE\n'
[zsh status] Expected 0, got 1

stdout:
FALSE
stderr:
zsh: command not found: shopt
toysh17 extglob empty string

[toysh stdout] Expected 'FALSE\nTRUE\n', got 'FALSE\n'
[toysh status] Expected 0, got 1

stdout:
FALSE
stderr:
sh: shopt: No such file or directory
dash18 extglob empty pattern

[dash stdout] Expected 'TRUE\nTRUE\nFALSE\nFALSE\n', got ''
[dash status] Expected 0, got 2

stdout:
stderr: 
dash: 1: shopt: not found
dash: 2: Syntax error: "(" unexpected
ash18 extglob empty pattern

[ash stdout] Expected 'TRUE\nTRUE\nFALSE\nFALSE\n', got ''
[ash status] Expected 0, got 2

stdout:
stderr: 
ash: shopt: not found
ash: syntax error: unexpected "("
zsh18 extglob empty pattern

[zsh stdout] Expected 'TRUE\nTRUE\nFALSE\nFALSE\n', got 'FALSE\n'

stdout:
FALSE
stderr:
zsh: command not found: shopt
zsh: parse error near `()'
zsh: parse error near `()'
toysh18 extglob empty pattern

[toysh stdout] Expected 'TRUE\nTRUE\nFALSE\nFALSE\n', got 'FALSE\nFALSE\n'

stdout:
FALSE
FALSE
stderr:
sh: shopt: No such file or directory
dash19 case with extglob

[dash stdout] Expected 'A\nA\nU\nB\nC\nD\n', got ''
[dash status] Expected 0, got 2

stdout:
stderr: 
dash: 1: shopt: not found
dash: 4: Syntax error: "(" unexpected (expecting ")")
ash19 case with extglob

[ash stdout] Expected 'A\nA\nU\nB\nC\nD\n', got ''
[ash status] Expected 0, got 2

stdout:
stderr: 
ash: shopt: not found
ash: syntax error: unexpected "(" (expecting ")")
zsh19 case with extglob

[zsh stdout] Expected 'A\nA\nU\nB\nC\nD\n', got 'U\nU\nU\nU\nD\nU\n'

stdout:
U
U
U
U
D
U
stderr:
zsh: command not found: shopt
toysh19 case with extglob

[toysh stdout] Expected 'A\nA\nU\nB\nC\nD\n', got 'U\n'
[toysh status] Expected 0, got -6

stdout:
U
stderr:
sh: shopt: No such file or directory
free(): invalid pointer
sush19 case with extglob

[sush stdout] Expected 'A\nA\nU\nB\nC\nD\n', got 'A\nU\nC\n'

stdout:
A
U
C
stderr:
dash20 [[ $x == !($str) ]]

[dash stdout] Expected 'TRUE\nFALSE\n', got ''
[dash status] Expected 0, got 2

stdout:
stderr: 
dash: 1: shopt: not found
dash: 4: Syntax error: "(" unexpected
ash20 [[ $x == !($str) ]]

[ash stdout] Expected 'TRUE\nFALSE\n', got ''
[ash status] Expected 0, got 2

stdout:
stderr: 
ash: shopt: not found
ash: syntax error: unexpected "("
zsh20 [[ $x == !($str) ]]

[zsh stdout] Expected 'TRUE\nFALSE\n', got 'FALSE\n'

stdout:
FALSE
stderr:
zsh: command not found: shopt
toysh20 [[ $x == !($str) ]]

[toysh stdout] Expected 'TRUE\nFALSE\n', got 'FALSE\n'

stdout:
FALSE
stderr:
sh: shopt: No such file or directory
[[: too many arguments
sush20 [[ $x == !($str) ]]

[sush stdout] Expected 'TRUE\nFALSE\n', got 'FALSE\n'

stdout:
FALSE
stderr:
dash21 Turning extglob on changes the meaning of [[ !(str) ]] in bash

[dash stdout] Expected 'TRUE\nFALSE\nTRUE\nTRUE\n', got ''
[dash status] Expected 0, got 2

stdout:
stderr: 
dash: 3: Syntax error: "(" unexpected
ash21 Turning extglob on changes the meaning of [[ !(str) ]] in bash

[ash stdout] Expected 'TRUE\nFALSE\nTRUE\nTRUE\n', got ''
[ash status] Expected 0, got 2

stdout:
stderr: 
ash: syntax error: unexpected "("
zsh21 Turning extglob on changes the meaning of [[ !(str) ]] in bash

[zsh stdout] Expected 'TRUE\nFALSE\nTRUE\nTRUE\n', got 'TRUE\nTRUE\nTRUE\n'

stdout:
TRUE
TRUE
TRUE
stderr:
zsh: command not found: shopt
mksh21 Turning extglob on changes the meaning of [[ !(str) ]] in bash

stdout:
TRUE
TRUE
TRUE
stderr:
mksh: <stdin>[5]: shopt: not found
ksh21 Turning extglob on changes the meaning of [[ !(str) ]] in bash

stdout:
TRUE
TRUE
TRUE
stderr:
E: ksh: <stdin>[5]: shopt: inaccessible or not found
toysh21 Turning extglob on changes the meaning of [[ !(str) ]] in bash

[toysh stdout] Expected 'TRUE\nFALSE\nTRUE\nTRUE\n', got 'TRUE\nTRUE\nTRUE\n'

stdout:
TRUE
TRUE
TRUE
stderr:
sh: shopt: No such file or directory
sush21 Turning extglob on changes the meaning of [[ !(str) ]] in bash

[sush stdout] Expected 'TRUE\nFALSE\nTRUE\nTRUE\n', got 'TRUE\nFALSE\nTRUE\n'
[sush status] Expected 0, got 1

stdout:
TRUE
FALSE
TRUE
stderr:
brush21 Turning extglob on changes the meaning of [[ !(str) ]] in bash

[brush stdout] Expected 'TRUE\nFALSE\nTRUE\nTRUE\n', got 'TRUE\nTRUE\nTRUE\n'

stdout:
TRUE
TRUE
TRUE
stderr:
osh21 Turning extglob on changes the meaning of [[ !(str) ]] in bash

[osh stdout] Expected 'TRUE\nFALSE\nTRUE\nTRUE\n', got ''
[osh status] Expected 0, got 1

stdout:
stderr: 
  [[ !($empty) ]]  && echo TRUE   # test if $empty is empty
     ^~
[ stdin ]:3: fatal: extended glob not allowed in this word
dash22 With extglob on, !($str) on the left or right of == has different meanings

[dash stdout] Expected 'TRUE\n', got ''
[dash status] Expected 0, got 2

stdout:
stderr: 
dash: 1: shopt: not found
dash: 3: Syntax error: "(" unexpected
ash22 With extglob on, !($str) on the left or right of == has different meanings

[ash stdout] Expected 'TRUE\n', got ''
[ash status] Expected 0, got 2

stdout:
stderr: 
ash: shopt: not found
ash: syntax error: unexpected "("
zsh22 With extglob on, !($str) on the left or right of == has different meanings

[zsh stdout] Expected 'TRUE\n', got ''
[zsh status] Expected 0, got 1

stdout:
stderr: 
zsh: command not found: shopt
toysh22 With extglob on, !($str) on the left or right of == has different meanings

[toysh stdout] Expected 'TRUE\n', got ''
[toysh status] Expected 0, got 1

stdout:
stderr: 
sh: shopt: No such file or directory
sush22 With extglob on, !($str) on the left or right of == has different meanings

[sush stdout] Expected 'TRUE\n', got ''
[sush status] Expected 0, got 2

stdout:
stderr: 
dash23 extglob inside arg word

[dash stdout] Expected 'rhs\nrhs arg\nnope\n', got ''
[dash status] Expected 0, got 2

stdout:
stderr: 
dash: 1: shopt: not found
dash: 2: Syntax error: "(" unexpected
ash23 extglob inside arg word

[ash stdout] Expected 'rhs\nrhs arg\nnope\n', got ''
[ash status] Expected 0, got 2

stdout:
stderr: 
ash: shopt: not found
ash: syntax error: unexpected "("
zsh23 extglob inside arg word

[zsh stdout] Expected 'rhs\nrhs arg\nnope\n', got 'nope\n'

stdout:
nope
stderr:
zsh: command not found: shopt
mksh23 extglob inside arg word

stdout:
rhs
nope
stderr:
mksh: <stdin>[1]: shopt: not found
ksh23 extglob inside arg word

stdout:
rhs
nope
stderr:
E: ksh: <stdin>[1]: shopt: inaccessible or not found
toysh23 extglob inside arg word

[toysh stdout] Expected 'rhs\nrhs arg\nnope\n', got 'nope\n'

stdout:
nope
stderr:
sh: shopt: No such file or directory
osh23 extglob inside arg word

[osh stdout] Expected 'rhs\nrhs arg\nnope\n', got 'rhs\n'
[osh status] Expected 0, got 1

stdout:
rhs
stderr:
  [[ foo == ${unset:-@(foo|bar)} ]] && echo 'rhs arg'
                     ^~
[ stdin ]:3: fatal: Extended glob not allowed in this word
dash24 extglob is not detected in regex!

[dash stdout] Expected 'FALSE\n', got ''
[dash status] Expected 0, got 2

stdout:
stderr: 
dash: 1: shopt: not found
dash: 2: Syntax error: "(" unexpected
ash24 extglob is not detected in regex!

[ash stdout] Expected 'FALSE\n', got ''
[ash status] Expected 0, got 2

stdout:
stderr: 
ash: shopt: not found
ash: syntax error: unexpected "("
mksh24 extglob is not detected in regex!

stdout:
stderr: 
mksh: <stdin>[1]: shopt: not found
mksh: <stdin>[2]: syntax error: '=~' unexpected operator/operand
ksh24 extglob is not detected in regex!

stdout:
stderr: 
E: ksh: <stdin>[1]: shopt: inaccessible or not found
E: ksh: <stdin>[2]: syntax error: unexpected operator/operand '=~'
dash25 regular glob of single unicode char

[dash stdout] Expected '0\n0\n', got '127\n127\n'

stdout:
127
127
stderr:
dash: 1: shopt: not found
dash: 2: [[: not found
dash: 4: [[: not found
ash25 regular glob of single unicode char

[ash stdout] Expected '0\n0\n', got '0\n1\n'

stdout:
0
1
stderr:
ash: shopt: not found
mksh25 regular glob of single unicode char

stdout:
0
1
stderr:
mksh: <stdin>[1]: shopt: not found
toysh25 regular glob of single unicode char

[toysh stdout] Expected '0\n0\n', got '1\n1\n'

stdout:
1
1
stderr:
sh: shopt: No such file or directory
dash26 extended glob of single unicode char

[dash stdout] Expected '0\n0\n', got ''
[dash status] Expected 0, got 2

stdout:
stderr: 
dash: 1: shopt: not found
dash: 2: Syntax error: "(" unexpected
ash26 extended glob of single unicode char

[ash stdout] Expected '0\n0\n', got ''
[ash status] Expected 0, got 2

stdout:
stderr: 
ash: shopt: not found
ash: syntax error: unexpected "("
zsh26 extended glob of single unicode char

[zsh stdout] Expected '0\n0\n', got '1\n1\n'

stdout:
1
1
stderr:
zsh: command not found: shopt
mksh26 extended glob of single unicode char

stdout:
0
1
stderr:
mksh: <stdin>[1]: shopt: not found
toysh26 extended glob of single unicode char

[toysh stdout] Expected '0\n0\n', got '1\n1\n'

stdout:
1
1
stderr:
sh: shopt: No such file or directory
dash27 Extended glob in ${x//pat/replace}

[dash stdout] Expected 'foZ\n', got ''
[dash status] Expected 0, got 2

stdout:
stderr: 
dash: 1: shopt: not found
dash: 3: Bad substitution
ash27 Extended glob in ${x//pat/replace}

[ash stdout] Expected 'foZ\n', got 'foo.py\n'

stdout:
foo.py
stderr:
ash: shopt: not found
zsh27 Extended glob in ${x//pat/replace}

[zsh stdout] Expected 'foZ\n', got 'foo.py\n'

stdout:
foo.py
stderr:
zsh: command not found: shopt
toysh27 Extended glob in ${x//pat/replace}

[toysh stdout] Expected 'foZ\n', got 'foo.py\n'

stdout:
foo.py
stderr:
sh: shopt: No such file or directory
osh27 Extended glob in ${x//pat/replace}

stdout:
stderr: 
  echo ${x//@(?.py)/Z}
            ^~
[ stdin ]:3: fatal: extended globs not supported in ${x//GLOB/}
dash28 Extended glob in ${x%PATTERN}

[dash stdout] Expected 'strip % foo\nstrip %% foo\nstrip # .py\nstrip ## .py\n' Got 'strip % foo.py\nstrip %% foo.py\nstrip # foo.py\nstrip ## foo.py\n'

stdout:
strip %  foo.py
strip %% foo.py
strip #  foo.py
strip ## foo.py
stderr:
dash: 1: shopt: not found
ash28 Extended glob in ${x%PATTERN}

[ash stdout] Expected 'strip % foo\nstrip %% foo\nstrip # .py\nstrip ## .py\n' Got 'strip % foo.py\nstrip %% foo.py\nstrip # foo.py\nstrip ## foo.py\n'

stdout:
strip %  foo.py
strip %% foo.py
strip #  foo.py
strip ## foo.py
stderr:
ash: shopt: not found
zsh28 Extended glob in ${x%PATTERN}

[zsh stdout] Expected 'strip % foo\nstrip %% foo\nstrip # .py\nstrip ## .py\n' Got 'strip % foo.py\nstrip %% foo.py\nstrip # foo.py\nstrip ## foo.py\n'

stdout:
strip %  foo.py
strip %% foo.py
strip #  foo.py
strip ## foo.py
stderr:
zsh: command not found: shopt
toysh28 Extended glob in ${x%PATTERN}

[toysh stdout] Expected 'strip % foo\nstrip %% foo\nstrip # .py\nstrip ## .py\n' Got 'strip % foo.py\nstrip %% foo.py\nstrip # foo.py\nstrip ## foo.py\n'

stdout:
strip %  foo.py
strip %% foo.py
strip #  foo.py
strip ## foo.py
stderr:
sh: shopt: No such file or directory