Results for extglob-files.test.sh

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

Details on runs that didn't PASS

osh_.cc3 +() matches 1 or more

[osh_.cc stdout] Expected 'eg2/_One eg2/_OneOne eg2/_OneTwo eg2/_TwoTwo\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.opt: cpp/posix.h:74: Tuple2<int, int> posix::pipe(): Assertion `0' failed.
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_.py12 Escaping of pipe (glibc bug, see demo/glibc_fnmatch.c)

[osh_.py stdout] Expected "['__|', 'foo']\n['__|', 'foo']\n", got "['foo']\n['foo']\n"

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

[osh_.cc stdout] Expected "['__|', 'foo']\n['__|', 'foo']\n", got "['foo']\n['foo']\n"

stdout:
['foo']
['foo']
stderr:
dumb_alloc:
	gNumNew = 2664
	gNumDelete = 300
	gMemPos = 88448

	gNumMalloc = 325
	gNumFree = 0
	gMemPos2 = 18000
osh13 Extended glob syntax in bad redirect context

stdout:
stderr: 
rm: cannot remove 'bad_*': No such file or directory
  echo foo > bad_@(*.cc|*.h)
             ^~~~
[ stdin ]:4: fatal: extended glob not allowed in this word
osh_.py13 Extended glob syntax in bad redirect context

stdout:
stderr: 
rm: cannot remove 'bad_*': No such file or directory
  echo foo > bad_@(*.cc|*.h)
             ^~~~
[ stdin ]:4: fatal: extended glob not allowed in this word
osh_.cc13 Extended glob syntax in bad redirect context

stdout:
stderr: 
rm: cannot remove 'bad_*': No such file or directory
  echo foo > bad_@(*.cc|*.h)
           ^
[ stdin ]:4: fatal: extended glob not allowed in this word

dumb_alloc:
	gNumNew = 2087
	gNumDelete = 178
	gMemPos = 71216

	gNumMalloc = 148
	gNumFree = 0
	gMemPos2 = 10960
osh14 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_.py14 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_.cc14 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

dumb_alloc:
	gNumNew = 2687
	gNumDelete = 301
	gMemPos = 88224

	gNumMalloc = 342
	gNumFree = 0
	gMemPos2 = 18288
osh15 Extended glob in assignment builtin

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

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

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

dumb_alloc:
	gNumNew = 2455
	gNumDelete = 259
	gMemPos = 82032

	gNumMalloc = 256
	gNumFree = 0
	gMemPos2 = 16912
osh16 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_.py16 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_.cc16 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

dumb_alloc:
	gNumNew = 3641
	gNumDelete = 527
	gMemPos = 116768

	gNumMalloc = 722
	gNumFree = 0
	gMemPos2 = 24384
osh17 Extended glob with word splitting

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

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

stdout:
['a b*.@(cc|h)']
stderr:
dumb_alloc:
	gNumNew = 2583
	gNumDelete = 289
	gMemPos = 86336

	gNumMalloc = 290
	gNumFree = 0
	gMemPos2 = 17440
osh_.cc21 dashglob

[osh_.cc stdout] Expected '-dash bar foo\nbar foo\n', got '-dash bar foo\n@(*)\n'

stdout:
-dash bar foo
@(*)
stderr:
dumb_alloc:
	gNumNew = 2889
	gNumDelete = 334
	gMemPos = 93968

	gNumMalloc = 390
	gNumFree = 0
	gMemPos2 = 19040