Results for glob.test.sh

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

Details on runs that didn't PASS

dash13 store literal globs in array then expand

stdout:
stderr: 
dash: 2: Syntax error: "(" unexpected
ash13 store literal globs in array then expand

stdout:
stderr: 
ash: syntax error: unexpected "("
dash14 glob inside array

stdout:
stderr: 
dash: 2: Syntax error: "(" unexpected
ash14 glob inside array

stdout:
stderr: 
ash: syntax error: unexpected "("
mksh16 glob with char class expression

stdout:
_tmp/*.[[:punct:]E]
stderr:
mksh19 : escaped

stdout:
_tmp/*.[[:punct:]] _tmp/*.[[:punct:]]
stderr:
ash19 : escaped

stdout:
_tmp/foo.- _tmp/foo.-
stderr:
bash20 Redirect to glob, not evaluated

stdout:
stderr: 
cat: '_tmp/*.F': No such file or directory
dash26 shopt -s nullglob

stdout:
['_tmp/spec-tmp/*.nonexistent']
['_tmp/spec-tmp/*.nonexistent']
stderr:
dash: 2: shopt: not found
mksh26 shopt -s nullglob

stdout:
['_tmp/spec-tmp/*.nonexistent']
['_tmp/spec-tmp/*.nonexistent']
stderr:
mksh: <stdin>[2]: shopt: not found
ash26 shopt -s nullglob

stdout:
['_tmp/spec-tmp/*.nonexistent']
['_tmp/spec-tmp/*.nonexistent']
stderr:
ash: shopt: not found
dash27 shopt -s failglob in command context

stdout:
['*.ZZ']
['*.ZZ']
status=0
stderr:
dash: 2: shopt: not found
mksh27 shopt -s failglob in command context

stdout:
['*.ZZ']
['*.ZZ']
status=0
stderr:
mksh: <stdin>[2]: shopt: not found
ash27 shopt -s failglob in command context

stdout:
['*.ZZ']
['*.ZZ']
status=0
stderr:
ash: shopt: not found
dash28 shopt -s failglob in loop context

stdout:
*.ZZ
status=0
*.ZZ
status=0
stderr:
dash: 3: shopt: not found
mksh28 shopt -s failglob in loop context

stdout:
*.ZZ
status=0
*.ZZ
status=0
stderr:
mksh: <stdin>[3]: shopt: not found
ash28 shopt -s failglob in loop context

stdout:
*.ZZ
status=0
*.ZZ
status=0
stderr:
ash: shopt: not found
dash29 shopt -s failglob in array literal context

stdout:
stderr: 
dash: 1: Syntax error: "(" unexpected
mksh29 shopt -s failglob in array literal context

stdout:
*.ZZ
status=0
stderr:
mksh: <stdin>[3]: shopt: not found
ash29 shopt -s failglob in array literal context

stdout:
stderr: 
ash: syntax error: unexpected "("
dash30 shopt -s failglob exits properly in command context with set -e

stdout:
['*.ZZ']
stderr:
dash: 3: shopt: not found
mksh30 shopt -s failglob exits properly in command context with set -e

stdout:
['*.ZZ']
stderr:
mksh: <stdin>[3]: shopt: not found
ash30 shopt -s failglob exits properly in command context with set -e

stdout:
['*.ZZ']
stderr:
ash: shopt: not found
dash31 shopt -s failglob exits properly in loop context with set -e

stdout:
*.ZZ
status=0
stderr:
dash: 4: shopt: not found
mksh31 shopt -s failglob exits properly in loop context with set -e

stdout:
*.ZZ
status=0
stderr:
mksh: <stdin>[4]: shopt: not found
ash31 shopt -s failglob exits properly in loop context with set -e

stdout:
*.ZZ
status=0
stderr:
ash: shopt: not found
dash32 shopt -s failglob behavior on single line with semicolon

stdout:
*.ZZ
status=0
*.ZZ
status=0
stderr:
dash: 1: shopt: not found
mksh32 shopt -s failglob behavior on single line with semicolon

stdout:
*.ZZ
status=0
*.ZZ
status=0
stderr:
mksh: <stdin>[1]: shopt: not found
ash32 shopt -s failglob behavior on single line with semicolon

stdout:
*.ZZ
status=0
*.ZZ
status=0
stderr:
ash: shopt: not found
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_ALT32 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
dash33 Don't glob flags on file system with GLOBIGNORE

stdout:
hello zzzzz
stderr:
mksh33 Don't glob flags on file system with GLOBIGNORE

stdout:
hello zzzzz
stderr:
ash33 Don't glob flags on file system with GLOBIGNORE

stdout:
hello zzzzz
stderr:
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_ALT33 Don't glob flags on file system with GLOBIGNORE

[osh_ALT stdout] Expected u'-* hello zzzz?\n', got ''
[osh_ALT status] Expected 0, got 99

stdout:
stderr: 
dash34 Splitting/Globbing doesn't happen on local assignment

stdout:
stderr: 
dash: 4: local: INSTALL.txt: bad variable name
dash36 Glob of negated unescaped [[] and []]

stdout:
_[^[z] _[^]z]
_[^[z] _[^]z]
stderr:
mksh36 Glob of negated unescaped [[] and []]

stdout:
_[^[z] _[^]z]
_[^[z] _[^]z]
stderr:
dash37 PatSub of unescaped [[] and []]

stdout:
stderr: 
dash: 2: Bad substitution
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_ALT37 PatSub of unescaped [[] and []]

[osh_ALT 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:
dash38 PatSub of negated unescaped [[] and []]

stdout:
stderr: 
dash: 2: Bad substitution
mksh38 PatSub of negated unescaped [[] and []]

stdout:
<foo]
[foo>
<foo]
stderr:
osh38 PatSub of negated unescaped [[] and []]

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

stdout:
[<<<<
>>>>]
[foo]
stderr:
osh_ALT38 PatSub of negated unescaped [[] and []]

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

stdout:
[<<<<
>>>>]
[foo]
stderr:
dash39 Glob unicode char

stdout:
__a__
stderr:
mksh39 Glob unicode char

stdout:
__a__
stderr:
ash39 Glob unicode char

stdout:
__a__
stderr:
dash40 dotglob (bash option that dashglob is roughly consistent with)

stdout:
other
other
stderr:
dash: 6: shopt: not found
mksh40 dotglob (bash option that dashglob is roughly consistent with)

stdout:
other
other
stderr:
mksh: <stdin>[6]: shopt: not found
ash40 dotglob (bash option that dashglob is roughly consistent with)

stdout:
other
other
stderr:
ash: shopt: not found
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_ALT40 dotglob (bash option that dashglob is roughly consistent with)

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

stdout:
other
other
stderr: