Results for glob.test.sh

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

Details on runs that didn't PASS

osh31 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-cpp31 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
osh35 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-cpp35 PatSub of unescaped [[] and []]

[osh-cpp 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:
osh36 PatSub of negated unescaped [[] and []]

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

stdout:
[<<<<
>>>>]
[foo]
stderr:
osh-cpp36 PatSub of negated unescaped [[] and []]

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

stdout:
[<<<<
>>>>]
[foo]
stderr:
osh38 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-cpp38 dotglob (bash option that dashglob is roughly consistent with)

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

stdout:
other
other
stderr: