Results for extglob-files.test.sh

statusoshosh_.pyosh_.cc
pass 171710
ok 333
N-I 220
FAIL 1110
total232323
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 FAIL Extended glob patterns with spaces
details
8pass pass FAIL Filenames with spaces
details
9pass pass FAIL nullglob with extended glob
details
10pass pass FAIL Glob other punctuation chars (lexer mode)
details
11pass pass FAIL More glob escaping
details
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 FAIL Extended glob in same word as array
detailsdetailsdetails
17N-I N-I FAIL 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
44 passed, 9 OK, 4 not implemented, 0 BUG, 12 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.
osh_.cc7 Extended glob patterns with spaces

[osh_.cc status] Expected 0, got 255

stdout:
['eg4/a b', 'eg4/foo']
stderr:
dumb_alloc:
	gNumNew = 2359
	gNumDelete = 243
	gMemPos = 78672

	gNumMalloc = 250
	gNumFree = 0
	gMemPos2 = 12576
osh_.cc8 Filenames with spaces

[osh_.cc status] Expected 0, got 255

stdout:
['eg5/a bcd', 'eg5/a bde']
stderr:
dumb_alloc:
	gNumNew = 2531
	gNumDelete = 306
	gMemPos = 84320

	gNumMalloc = 328
	gNumFree = 0
	gMemPos2 = 13840
osh_.cc9 nullglob with extended glob

[osh_.cc status] Expected 0, got 255

stdout:
['eg6/@(no|matches)']
[]
stderr:
dumb_alloc:
	gNumNew = 2478
	gNumDelete = 273
	gMemPos = 83104

	gNumMalloc = 291
	gNumFree = 0
	gMemPos2 = 13296
mkdir: cannot create directory 'eg6': File exists
osh_.cc10 Glob other punctuation chars (lexer mode)

[osh_.cc status] Expected 0, got 255

stdout:
['__#', '__&&', '__<>', '__aa', '__{}']
stderr:
dumb_alloc:
	gNumNew = 2720
	gNumDelete = 337
	gMemPos = 89680

	gNumMalloc = 358
	gNumFree = 0
	gMemPos2 = 18544
osh_.cc11 More glob escaping

[osh_.cc status] Expected 0, got 255

stdout:
['_*', '_?', '_[:]']
['_*', '_?', '_[:]']
stderr:
dumb_alloc:
	gNumNew = 2702
	gNumDelete = 335
	gMemPos = 89632

	gNumMalloc = 311
	gNumFree = 0
	gMemPos2 = 17808
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"
[osh_.cc status] Expected 0, got 255

stdout:
['foo']
['foo']
stderr:
dumb_alloc:
	gNumNew = 2632
	gNumDelete = 299
	gMemPos = 87232

	gNumMalloc = 323
	gNumFree = 0
	gMemPos2 = 17968
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: 
  echo foo > bad_@(*.cc|*.h)
           ^
[ stdin ]:4: fatal: extended glob not allowed in this word

dumb_alloc:
	gNumNew = 2054
	gNumDelete = 177
	gMemPos = 69952

	gNumMalloc = 146
	gNumFree = 0
	gMemPos2 = 10928
rm: cannot remove 'bad_*': No such file or directory
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 = 2654
	gNumDelete = 300
	gMemPos = 86960

	gNumMalloc = 340
	gNumFree = 0
	gMemPos2 = 18256
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 = 2422
	gNumDelete = 258
	gMemPos = 80768

	gNumMalloc = 254
	gNumFree = 0
	gMemPos2 = 16880
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

[osh_.cc stdout] Expected "['a b', 'c']\n['star', 'glob', 'a b c.py']\n['star', 'extglob', 'a b c.cc', 'a b c.py']\n", got "['star', 'glob', 'a b c.py']\n['star', 'extglob', 'a b c.cc', 'a b c.py']\n['a b', 'c']\n"

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

dumb_alloc:
	gNumNew = 3608
	gNumDelete = 526
	gMemPos = 115504

	gNumMalloc = 720
	gNumFree = 0
	gMemPos2 = 24352
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

[osh_.cc status] Expected 0, got 255

stdout:
['a b*.@(cc|h)']
stderr:
dumb_alloc:
	gNumNew = 2551
	gNumDelete = 288
	gMemPos = 85120

	gNumMalloc = 288
	gNumFree = 0
	gMemPos2 = 17408
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 = 2857
	gNumDelete = 333
	gMemPos = 92752

	gNumMalloc = 388
	gNumFree = 0
	gMemPos2 = 19008