glob () { run-file glob "$@" } run-file () { local spec_name=$1; shift; sh-spec spec/$spec_name.test.sh --compare-shells --oils-bin-dir $PWD/bin "$@" } glob: spec test case results

Results for glob.test.sh

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

stdout:
_tmp/foo.- _tmp/foo.-
stderr:
mksh19 : escaped

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

stdout:
_tmp/foo.- _tmp/foo.-
stderr:
dash25 shopt -s nullglob

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

stdout:
*.ZZ
status=0
*.ZZ
status=0
stderr:
ash: shopt: not found
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
dash32 Splitting/Globbing doesn't happen on local assignment

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

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

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

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

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

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

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

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

stdout:
__a__
stderr:
mksh37 Glob unicode char

stdout:
__a__
stderr:
ash37 Glob unicode char

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

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

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

stdout:
other
other
stderr:
ash: shopt: not found
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: