Results for glob.test.sh

statusoshosh_.pyosh_.cc
pass 363533
ok 111
FAIL 457
total414141
caseoshosh_.pyosh_.ccdescription
0pass pass pass glob double quote escape
1pass pass pass glob single quote escape
2pass pass pass glob backslash escape
3pass pass pass 1 char glob
4pass pass pass 0 char glob -- does NOT work
5pass pass pass looks like glob at the start, but isn't
6pass pass pass looks like glob plus negation at the start, but isn't
7pass pass FAIL glob can expand to command and arg
details
8pass pass pass glob after var expansion
9pass pass pass quoted var expansion with glob meta characters
10pass pass pass glob after "$@" expansion
11pass pass pass glob after $@ expansion
12pass pass pass no glob after ~ expansion
13pass pass pass store literal globs in array then expand
14pass pass pass glob inside array
15pass pass pass glob with escaped - in char class
16pass pass pass glob with char class expression
17pass pass pass glob double quotes
18pass pass pass glob escaped
19pass pass pass : escaped
20pass pass FAIL Redirect to glob, not evaluated
details
21pass pass pass Glob after var manipulation
22pass pass pass Glob after part joining
23pass pass pass Glob flags on file system
24pass pass pass set -o noglob
25pass pass pass set -o noglob (bug #698)
26pass pass pass shopt -s nullglob
27pass pass pass shopt -s failglob in command context
28pass pass pass shopt -s failglob in loop context
29pass pass pass shopt -s failglob in array literal context
30pass pass pass shopt -s failglob exits properly in command context with set -e
31pass pass pass shopt -s failglob exits properly in loop context with set -e
32ok ok ok shopt -s failglob behavior on single line with semicolon
detailsdetailsdetails
33FAIL FAIL FAIL Don't glob flags on file system with GLOBIGNORE
detailsdetailsdetails
34pass pass pass Splitting/Globbing doesn't happen on local assignment
35pass pass pass Glob of unescaped [[] and []]
36pass pass pass Glob of negated unescaped [[] and []]
37FAIL FAIL FAIL PatSub of unescaped [[] and []]
detailsdetailsdetails
38FAIL FAIL FAIL PatSub of negated unescaped [[] and []]
detailsdetailsdetails
39pass FAIL FAIL Glob unicode char
detailsdetails
40FAIL FAIL FAIL dotglob (bash option that dashglob is roughly consistent with)
detailsdetailsdetails
104 passed, 3 OK, 0 not implemented, 0 BUG, 16 failed, 0 timeouts, 0 cases skipped
4 failed under osh

Details on runs that didn't PASS

osh_.cc7 glob can expand to command and arg

[osh_.cc stdout] Expected 'spec/testdata/echo.sz\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.opt: cpp/pylib_path_stat.h:10: bool path_stat::exists(Str*): Assertion `0' failed.
osh_.cc20 Redirect to glob, not evaluated

[osh_.cc stdout] Expected 'foo\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.opt: cpp/posix.h:111: void posix::dup2(int, int): Assertion `0' failed.
osh32 shopt -s failglob behavior on single line with semicolon

stdout:
status=1
status=1
stderr:
  echo *.ZZ; echo status=$? # bash doesn't execute the second part!
  ^~~~
[ stdin ]:2: failglob: Pattern '*.ZZ' matched no files
  echo *.ZZ
  ^~~~
[ stdin ]:3: failglob: Pattern '*.ZZ' matched no files
osh_.py32 shopt -s failglob behavior on single line with semicolon

stdout:
status=1
status=1
stderr:
  echo *.ZZ; echo status=$? # bash doesn't execute the second part!
  ^~~~
[ stdin ]:2: failglob: Pattern '*.ZZ' matched no files
  echo *.ZZ
  ^~~~
[ stdin ]:3: failglob: Pattern '*.ZZ' matched no files
osh_.cc32 shopt -s failglob behavior on single line with semicolon

stdout:
status=1
status=1
stderr:
  echo *.ZZ; echo status=$? # bash doesn't execute the second part!
  ^~~~
[ stdin ]:2: failglob: Pattern '*.ZZ' matched no files
  echo *.ZZ
  ^~~~
[ stdin ]:3: failglob: Pattern '*.ZZ' matched no files

dumb_alloc:
	gNumNew = 2356
	gNumDelete = 213
	gMemPos = 78208

	gNumMalloc = 266
	gNumFree = 0
	gMemPos2 = 12896
osh33 Don't glob flags on file system with GLOBIGNORE

[osh stdout] Expected u'-* hello zzzz?\n', got 'hello zzzzz'

stdout:
hello zzzzz
stderr:
osh_.py33 Don't glob flags on file system with GLOBIGNORE

[osh_.py stdout] Expected u'-* hello zzzz?\n', got 'hello zzzzz'

stdout:
hello zzzzz
stderr:
osh_.cc33 Don't glob flags on file system with GLOBIGNORE

[osh_.cc stdout] Expected u'-* hello zzzz?\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.opt: cpp/posix.h:111: void posix::dup2(int, int): Assertion `0' failed.
osh37 PatSub of unescaped [[] and []]

[osh stdout] Expected '<foo]\n[foo>\n<foo]\n[foo>\n', got '<foo]\n[foo>\n[foo]\n[foo>\n'

stdout:
<foo]
[foo>
[foo]
[foo>
stderr:
osh_.py37 PatSub of unescaped [[] and []]

[osh_.py stdout] Expected '<foo]\n[foo>\n<foo]\n[foo>\n', got '<foo]\n[foo>\n[foo]\n[foo>\n'

stdout:
<foo]
[foo>
[foo]
[foo>
stderr:
osh_.cc37 PatSub of unescaped [[] and []]

[osh_.cc stdout] Expected '<foo]\n[foo>\n<foo]\n[foo>\n', got '<foo]\n[foo>\n[foo]\n[foo>\n'

stdout:
<foo]
[foo>
[foo]
[foo>
stderr:
dumb_alloc:
	gNumNew = 2437
	gNumDelete = 224
	gMemPos = 79568

	gNumMalloc = 276
	gNumFree = 0
	gMemPos2 = 12992
osh38 PatSub of negated unescaped [[] and []]

[osh stdout] Expected '[<<<<\n>>>>]\n[<<<<\n', got '[<<<<\n>>>>]\n[foo]\n'

stdout:
[<<<<
>>>>]
[foo]
stderr:
osh_.py38 PatSub of negated unescaped [[] and []]

[osh_.py stdout] Expected '[<<<<\n>>>>]\n[<<<<\n', got '[<<<<\n>>>>]\n[foo]\n'

stdout:
[<<<<
>>>>]
[foo]
stderr:
osh_.cc38 PatSub of negated unescaped [[] and []]

[osh_.cc stdout] Expected '[<<<<\n>>>>]\n[<<<<\n', got '[<<<<\n>>>>]\n[foo]\n'

stdout:
[<<<<
>>>>]
[foo]
stderr:
dumb_alloc:
	gNumNew = 2300
	gNumDelete = 214
	gMemPos = 76464

	gNumMalloc = 227
	gNumFree = 0
	gMemPos2 = 12208
osh_.py39 Glob unicode char

[osh_.py stdout] Expected '__a__ __\xce\xbc__\n', got '__a__\n'

stdout:
__a__
stderr:
osh_.cc39 Glob unicode char

[osh_.cc stdout] Expected '__a__ __\xce\xbc__\n', got '__a__\n'

stdout:
__a__
stderr:
dumb_alloc:
	gNumNew = 2692
	gNumDelete = 215
	gMemPos = 92480

	gNumMalloc = 673
	gNumFree = 0
	gMemPos2 = 23968
osh40 dotglob (bash option that dashglob is roughly consistent with)

[osh stdout] Expected 'other\n.foorc other\n', got 'other\nother\n'

stdout:
other
other
stderr:
osh_.py40 dotglob (bash option that dashglob is roughly consistent with)

[osh_.py stdout] Expected 'other\n.foorc other\n', got 'other\nother\n'

stdout:
other
other
stderr:
osh_.cc40 dotglob (bash option that dashglob is roughly consistent with)

[osh_.cc stdout] Expected 'other\n.foorc other\n', got 'other\nother\n'

stdout:
other
other
stderr:
dumb_alloc:
	gNumNew = 2934
	gNumDelete = 271
	gMemPos = 98320

	gNumMalloc = 651
	gNumFree = 0
	gMemPos2 = 23472