Results for glob.test.sh

statusoshosh_.pyosh_.cc
pass 313028
FAIL 679
total373737
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
27FAIL FAIL FAIL shopt -s failglob in command context
detailsdetailsdetails
28FAIL FAIL FAIL shopt -s failglob in loop context
detailsdetailsdetails
29FAIL FAIL FAIL Don't glob flags on file system with GLOBIGNORE
detailsdetailsdetails
30pass pass pass Splitting/Globbing doesn't happen on local assignment
31pass pass pass Glob of unescaped [[] and []]
32pass pass pass Glob of negated unescaped [[] and []]
33FAIL FAIL FAIL PatSub of unescaped [[] and []]
detailsdetailsdetails
34FAIL FAIL FAIL PatSub of negated unescaped [[] and []]
detailsdetailsdetails
35pass FAIL FAIL Glob unicode char
detailsdetails
36FAIL FAIL FAIL dotglob (bash option that dashglob is roughly consistent with)
detailsdetailsdetails
89 passed, 0 OK, 0 not implemented, 0 BUG, 22 failed, 0 timeouts, 0 cases skipped
6 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:143: void posix::dup2(int, int): Assertion `0' failed.
osh27 shopt -s failglob in command context

[osh stdout] Expected "['*.ZZ']\nstatus=1\n", got "['*.ZZ']\n['*.ZZ']\nstatus=0\n"

stdout:
['*.ZZ']
['*.ZZ']
status=0
stderr:
osh_.py27 shopt -s failglob in command context

[osh_.py stdout] Expected "['*.ZZ']\nstatus=1\n", got "['*.ZZ']\n['*.ZZ']\nstatus=0\n"

stdout:
['*.ZZ']
['*.ZZ']
status=0
stderr:
osh_.cc27 shopt -s failglob in command context

[osh_.cc stdout] Expected "['*.ZZ']\nstatus=1\n", got "['*.ZZ']\n['*.ZZ']\nstatus=0\n"

stdout:
['*.ZZ']
['*.ZZ']
status=0
stderr:
dumb_alloc:
	gNumNew = 2171
	gNumDelete = 201
	gMemPos = 72944

	gNumMalloc = 234
	gNumFree = 0
	gMemPos2 = 12144
osh28 shopt -s failglob in loop context

[osh stdout] Expected '*.ZZ\nstatus=0\nstatus=1\n', got '*.ZZ\nstatus=0\n*.ZZ\nstatus=0\n'

stdout:
*.ZZ
status=0
*.ZZ
status=0
stderr:
osh_.py28 shopt -s failglob in loop context

[osh_.py stdout] Expected '*.ZZ\nstatus=0\nstatus=1\n', got '*.ZZ\nstatus=0\n*.ZZ\nstatus=0\n'

stdout:
*.ZZ
status=0
*.ZZ
status=0
stderr:
osh_.cc28 shopt -s failglob in loop context

[osh_.cc stdout] Expected '*.ZZ\nstatus=0\nstatus=1\n', got '*.ZZ\nstatus=0\n*.ZZ\nstatus=0\n'

stdout:
*.ZZ
status=0
*.ZZ
status=0
stderr:
dumb_alloc:
	gNumNew = 2519
	gNumDelete = 239
	gMemPos = 82128

	gNumMalloc = 311
	gNumFree = 0
	gMemPos2 = 13376
osh29 Don't glob flags on file system with GLOBIGNORE

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

stdout:
hello zzzzz
stderr:
osh_.py29 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_.cc29 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:143: void posix::dup2(int, int): Assertion `0' failed.
osh33 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_.py33 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_.cc33 PatSub of unescaped [[] and []]

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

stdout:
stderr: 
  echo ${x//[\[z]/<}  # the right way to do it
  ^~~~
[ stdin ]:2: fatal: Error matching regex '([\\[z])': Invalid locale for LC_CTYPE

dumb_alloc:
	gNumNew = 1777
	gNumDelete = 126
	gMemPos = 61792

	gNumMalloc = 77
	gNumFree = 0
	gMemPos2 = 9664
osh34 PatSub of negated unescaped [[] and []]

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

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

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

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

[osh_.cc stdout] Expected '[<<<<\n>>>>]\n[<<<<\n', got ''
[osh_.cc status] Expected 0, got 1

stdout:
stderr: 
  echo ${x//[^\[z]/<}  # the right way to do it
  ^~~~
[ stdin ]:2: fatal: Error matching regex '([^\\[z])': Invalid locale for LC_CTYPE

dumb_alloc:
	gNumNew = 1783
	gNumDelete = 129
	gMemPos = 61984

	gNumMalloc = 78
	gNumFree = 0
	gMemPos2 = 9680
osh_.py35 Glob unicode char

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

stdout:
__a__
stderr:
osh_.cc35 Glob unicode char

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

stdout:
__a__
stderr:
dumb_alloc:
	gNumNew = 2485
	gNumDelete = 204
	gMemPos = 85360

	gNumMalloc = 564
	gNumFree = 0
	gMemPos2 = 21968
osh36 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_.py36 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_.cc36 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 = 2749
	gNumDelete = 264
	gMemPos = 92096

	gNumMalloc = 578
	gNumFree = 0
	gMemPos2 = 22128