Results for glob.test.sh

statusoshosh_.pyosh_.cc
pass 312625
FAIL 61112
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 FAIL FAIL 1 char glob
detailsdetails
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 FAIL FAIL glob can expand to command and arg
detailsdetails
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 FAIL FAIL set -o noglob
detailsdetails
25pass pass pass set -o noglob (bug #698)
26pass FAIL FAIL shopt -s nullglob
detailsdetails
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
82 passed, 0 OK, 0 not implemented, 0 BUG, 29 failed, 0 timeouts, 0 cases skipped
6 failed under osh

Details on runs that didn't PASS

osh_.py3 1 char glob

[osh_.py stdout] Expected 'bin\n', got '[b]in\n'

stdout:
[b]in
stderr:
  cd $REPO_ROOT
  ^~
[ stdin ]:1: $HOME isn't defined
osh_.cc3 1 char glob

[osh_.cc stdout] Expected 'bin\n', got '[b]in\n'

stdout:
[b]in
stderr:
  cd $REPO_ROOT
  ^~
[ stdin ]:1: $HOME isn't defined
osh_.py7 glob can expand to command and arg

[osh_.py stdout] Expected 'spec/testdata/echo.sz\n', got ''
[osh_.py status] Expected 0, got 127

stdout:
stderr: 
  cd $REPO_ROOT
  ^~
[ stdin ]:1: $HOME isn't defined
  spec/testdata/echo.s[hz]
  ^~~~~~~~~~~~~~~~~~~~
[ stdin ]:2: 'spec/testdata/echo.s[hz]' not found
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: 
  cd $REPO_ROOT
  ^~
[ stdin ]:1: $HOME isn't defined
osh_eval.dbg: 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.dbg: cpp/posix.h:143: void posix::dup2(int, int): Assertion `0' failed.
osh_.py24 set -o noglob

[osh_.py stdout] Expected u'_tmp/spec-tmp/a.zz _tmp/spec-tmp/b.zz\n_tmp/spec-tmp/*.zz\n', got '_tmp/spec-tmp/*.zz\n_tmp/spec-tmp/*.zz\n'

stdout:
_tmp/spec-tmp/*.zz
_tmp/spec-tmp/*.zz
stderr:
  cd $REPO_ROOT
  ^~
[ stdin ]:1: $HOME isn't defined
touch: cannot touch '_tmp/spec-tmp/a.zz': No such file or directory
touch: cannot touch '_tmp/spec-tmp/b.zz': No such file or directory
osh_.cc24 set -o noglob

[osh_.cc stdout] Expected u'_tmp/spec-tmp/a.zz _tmp/spec-tmp/b.zz\n_tmp/spec-tmp/*.zz\n', got '_tmp/spec-tmp/*.zz\n_tmp/spec-tmp/*.zz\n'

stdout:
_tmp/spec-tmp/*.zz
_tmp/spec-tmp/*.zz
stderr:
  cd $REPO_ROOT
  ^~
[ stdin ]:1: $HOME isn't defined
touch: cannot touch '_tmp/spec-tmp/a.zz': No such file or directory
touch: cannot touch '_tmp/spec-tmp/b.zz': No such file or directory
osh_.py26 shopt -s nullglob

[osh_.py stdout] Expected u"['_tmp/spec-tmp/*.nonexistent']\n[]\n", got ''
[osh_.py status] Expected 0, got 127

stdout:
stderr: 
  argv.py _tmp/spec-tmp/*.nonexistent
  ^~~~~~~
[ stdin ]:1: 'argv.py' not found
  argv.py _tmp/spec-tmp/*.nonexistent
  ^~~~~~~
[ stdin ]:3: 'argv.py' not found
osh_.cc26 shopt -s nullglob

[osh_.cc stdout] Expected u"['_tmp/spec-tmp/*.nonexistent']\n[]\n", got ''
[osh_.cc status] Expected 0, got 127

stdout:
stderr: 
  argv.py _tmp/spec-tmp/*.nonexistent
  ^~~~~~~
[ stdin ]:1: 'argv.py' not found
  argv.py _tmp/spec-tmp/*.nonexistent
  ^~~~~~~
[ stdin ]:3: 'argv.py' not found
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 'status=127\n'

stdout:
status=127
stderr:
  argv.py *.ZZ
  ^~~~~~~
[ stdin ]:1: 'argv.py' not found
  argv.py *.ZZ  # nothing is printed, not []
  ^~~~~~~
[ stdin ]:3: 'argv.py' not found
osh_.cc27 shopt -s failglob in command context

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

stdout:
status=127
stderr:
  argv.py *.ZZ
  ^~~~~~~
[ stdin ]:1: 'argv.py' not found
  argv.py *.ZZ  # nothing is printed, not []
  ^~~~~~~
[ stdin ]:3: 'argv.py' not found
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:
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:
  expr $0 : '.*/osh$' >/dev/null && exit 99  # disabled until cd implemented
  ^~~~
[ stdin ]:1: 'expr' not found
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.dbg: 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 '<foo]\n[foo>\n[foo]\n[foo>\n'

stdout:
<foo]
[foo>
[foo]
[foo>
stderr:
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 '[<<<<\n>>>>]\n[foo]\n'

stdout:
[<<<<
>>>>]
[foo]
stderr:
osh_.py35 Glob unicode char

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

stdout:
__a__
stderr:
touch: cannot touch '/__a__': Permission denied
touch: cannot touch '/__'$'\316\274''__': Permission denied
  cd $TMP
  ^~
[ stdin ]:3: $HOME isn't defined
osh_.cc35 Glob unicode char

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

stdout:
__a__
stderr:
touch: cannot touch '/__a__': Permission denied
touch: cannot touch '/__'$'\316\274''__': Permission denied
  cd $TMP
  ^~
[ stdin ]:3: $HOME isn't defined
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 '[ ] _G __a__ __\xce\xbc__ _tmp dotglob other\n[ ] _G __a__ __\xce\xbc__ _tmp dotglob other\n'

stdout:
[ ] _G __a__ __μ__ _tmp dotglob other
[ ] _G __a__ __μ__ _tmp dotglob other
stderr:
mkdir: cannot create directory '/dotglob': Permission denied
  cd $TMP/dotglob
     ^~~~
[ stdin ]:2: cd '/dotglob': No such file or directory
osh_.cc36 dotglob (bash option that dashglob is roughly consistent with)

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

stdout:
stderr: 
mkdir: cannot create directory '/dotglob': Permission denied
osh_eval.dbg: cpp/posix.h:88: Str *posix::strerror(int): Assertion `0' failed.