Results for extglob-files.test.sh

statusbashmkshoshosh_ALT
pass 22181818
ok 0222
N-I 1222
BUG 0100
FAIL 0011
total23232323
casebashmkshoshosh_ALTdescription
0pass pass pass pass @() matches exactly one of the patterns
1pass pass pass pass ?() matches 0 or 1
2pass pass pass pass *() matches 0 or more
3pass pass pass pass +() matches 1 or more
4pass pass pass pass !(*.h|*.cc) to match everything except C++
5pass pass pass pass Two adjacent alternations
6pass pass pass pass Nested extended glob pattern
7pass pass pass pass Extended glob patterns with spaces
8pass pass pass pass Filenames with spaces
9pass BUG pass pass nullglob with extended glob
details
10pass pass pass pass Glob other punctuation chars (lexer mode)
11pass pass pass pass More glob escaping
12pass pass FAIL FAIL Escaping of pipe (glibc bug, see demo/glibc_fnmatch.c)
detailsdetails
13pass ok ok ok Extended glob as argument to ${undef:-} (dynamic globbing)
detailsdetailsdetails
14pass ok ok ok Extended glob in assignment builtin
detailsdetailsdetails
15pass pass N-I N-I Extended glob in same word as array
detailsdetails
16pass pass N-I N-I Extended glob with word splitting
detailsdetails
17pass pass pass pass In Array Literal and for loop
18pass pass pass pass No extended glob with simple_word_eval (Oil evaluation)
19pass pass pass pass no match
20N-I N-I pass pass dashglob
detailsdetails
21pass pass pass pass noglob
22pass N-I pass pass failglob
details
76 passed, 6 OK, 7 not implemented, 1 BUG, 1 failed, 0 timeouts, 0 cases skipped
1 failed under osh

Details on runs that didn't PASS

mksh9 nullglob with extended glob

stdout:
['eg6/@(no|matches)']
['eg6/@(no|matches)']
stderr:
mksh: <stdin>[1]: shopt: not found
mksh: <stdin>[4]: shopt: not found
osh12 Escaping of pipe (glibc bug, see demo/glibc_fnmatch.c)

[osh stdout] Expected "['__|', 'foo']\n['__|', 'foo']\n", got "['foo']\n['foo']\n"

stdout:
['foo']
['foo']
stderr:
osh_ALT12 Escaping of pipe (glibc bug, see demo/glibc_fnmatch.c)

[osh_ALT stdout] Expected "['__|', 'foo']\n['__|', 'foo']\n", got "['foo']\n['foo']\n"

stdout:
['foo']
['foo']
stderr:
mksh13 Extended glob as argument to ${undef:-} (dynamic globbing)

stdout:
bar.py foo.py spam.py
@(foo|bar).py
stderr:
mksh: <stdin>[1]: shopt: not found
osh13 Extended glob as argument to ${undef:-} (dynamic globbing)

stdout:
bar.py foo.py spam.py
stderr:
  echo ${undef:-@(foo|bar).py}
                ^~
[ stdin ]:9: fatal: Extended glob not allowed in this word
osh_ALT13 Extended glob as argument to ${undef:-} (dynamic globbing)

stdout:
bar.py foo.py spam.py
stderr:
  echo ${undef:-@(foo|bar).py}
                ^~
[ stdin ]:9: fatal: Extended glob not allowed in this word
mksh14 Extended glob in assignment builtin

stdout:
status=1
stderr:
mksh: <stdin>[1]: shopt: not found
mksh: <stdin>[5]: typeset: -@: unknown option
osh14 Extended glob in assignment builtin

stdout:
stderr: 
  typeset -@(*.py) myvar
          ^
[ stdin ]:5: fatal: Extended glob not allowed in this word
osh_ALT14 Extended glob in assignment builtin

stdout:
stderr: 
  typeset -@(*.py) myvar
          ^
[ stdin ]:5: fatal: Extended glob not allowed in this word
osh15 Extended glob in same word as array

stdout:
['a b', 'c']
['star', 'glob', 'a b c.py']
['star', 'extglob', 'a b c.cc', 'a b c.py']
stderr:
  argv.py at extglob "$@"*@(.py|cc)
                     ^
[ stdin ]:13: fatal: Extended globs and arrays can't appear in the same word
osh_ALT15 Extended glob in same word as array

stdout:
['a b', 'c']
['star', 'glob', 'a b c.py']
['star', 'extglob', 'a b c.cc', 'a b c.py']
stderr:
  argv.py at extglob "$@"*@(.py|cc)
                     ^
[ stdin ]:13: fatal: Extended globs and arrays can't appear in the same word
osh16 Extended glob with word splitting

stdout:
['a b*.@(cc|h)']
stderr:
osh_ALT16 Extended glob with word splitting

stdout:
['a b*.@(cc|h)']
stderr:
bash20 dashglob

stdout:
-dash bar foo
-dash bar foo
stderr:
bash: line 8: shopt: dashglob: invalid shell option name
mksh20 dashglob

stdout:
-dash bar foo
-dash bar foo
stderr:
mksh: <stdin>[1]: shopt: not found
mksh: <stdin>[8]: shopt: not found
mksh22 failglob

stdout:
@(*)
status=0
foo
status=0
stderr:
mksh: <stdin>[1]: shopt: not found
mksh: <stdin>[7]: shopt: not found