Results for glob.test.sh

statusbashdashashzshmkshkshtoyshsushbrushosh
pass 31242720262816242729
N-I 0530100000
BUG 1320500000
FAIL 000120416853
total32323232323232323232
casebashdashashzshmkshkshtoyshsushbrushoshdescription
0pass pass pass pass pass pass pass pass pass pass glob double quote escape
1pass pass pass pass pass pass pass pass pass pass glob single quote escape
2pass pass pass pass pass pass pass pass pass pass glob backslash escape
3pass pass pass pass pass pass FAIL pass pass pass 1 char glob
details
4pass pass pass FAIL pass pass pass pass pass pass 0 char glob -- does NOT work
details
5pass pass pass FAIL pass pass pass pass pass pass looks like glob at the start, but isn't
details
6pass pass pass FAIL pass pass pass pass pass pass looks like glob plus negation at the start, but isn't
details
7pass pass pass pass pass pass FAIL pass pass pass glob can expand to command and arg
details
8pass pass pass FAIL pass pass FAIL pass pass pass glob after var expansion
detailsdetails
9pass pass pass pass pass pass pass pass pass pass quoted var expansion with glob meta characters
10pass pass pass pass pass pass pass pass pass pass glob after "$@" expansion
11pass pass pass FAIL pass pass pass pass pass pass glob after $@ expansion
details
12pass pass pass FAIL pass pass pass FAIL pass pass no glob after ~ expansion
detailsdetails
13pass N-I N-I FAIL pass pass FAIL pass pass pass store literal globs in array then expand
detailsdetailsdetailsdetails
14pass N-I N-I pass pass pass FAIL pass pass pass glob inside array
detailsdetailsdetails
15pass pass pass FAIL pass pass FAIL FAIL pass pass glob with escaped - in char class
detailsdetailsdetails
16pass pass pass pass BUG pass FAIL pass pass pass glob with char class expression
detailsdetails
17pass pass pass pass pass pass pass pass pass pass glob double quotes
18pass pass pass pass pass pass pass pass pass pass glob escaped
19BUG pass BUG FAIL BUG FAIL FAIL FAIL pass pass : escaped
detailsdetailsdetailsdetailsdetailsdetailsdetails
20pass pass pass FAIL pass pass FAIL pass pass pass Glob after var manipulation
detailsdetails
21pass pass pass FAIL pass pass FAIL pass pass pass Glob after part joining
detailsdetails
22pass pass pass pass pass pass pass pass pass pass Glob flags on file system
23pass pass pass pass pass pass FAIL pass pass pass set -o noglob
details
24pass pass pass pass pass pass pass pass pass pass set -o noglob (bug #698)
25pass BUG pass pass pass pass FAIL pass pass pass Splitting/Globbing doesn't happen on local assignment
detailsdetails
26pass pass pass FAIL pass pass FAIL FAIL FAIL pass Glob of unescaped [[] and []]
detailsdetailsdetailsdetails
27pass BUG pass pass BUG FAIL pass FAIL FAIL pass Glob of negated unescaped [[] and []]
detailsdetailsdetailsdetailsdetails
28pass N-I pass pass pass pass FAIL FAIL FAIL FAIL PatSub of unescaped [[] and []]
detailsdetailsdetailsdetailsdetails
29pass N-I pass pass BUG FAIL FAIL FAIL FAIL FAIL PatSub of negated unescaped [[] and []]
detailsdetailsdetailsdetailsdetailsdetailsdetails
30pass BUG BUG pass BUG pass pass pass pass pass Glob unicode char
detailsdetailsdetails
31pass N-I N-I pass N-I FAIL FAIL FAIL FAIL FAIL Glob ordering respects LC_COLLATE (zsh respects this too)
detailsdetailsdetailsdetailsdetailsdetailsdetailsdetails
252 passed, 0 OK, 9 not implemented, 11 BUG, 48 failed, 0 timeouts, 0 cases skipped
3 failed under osh

Details on runs that didn't PASS

toysh3 1 char glob

[toysh stdout] Expected 'bin\n', got '[b]in\n'

stdout:
[b]in
stderr:
zsh4 0 char glob -- does NOT work

[zsh stdout] Expected '[]bin\n', got ''
[zsh status] Expected 0, got 1

stdout:
stderr: 
zsh: no matches found: []bin
zsh5 looks like glob at the start, but isn't

[zsh stdout] Expected '[bin\n', got ''
[zsh status] Expected 0, got 1

stdout:
stderr: 
zsh: bad pattern: [bin
zsh6 looks like glob plus negation at the start, but isn't

[zsh stdout] Expected '[!bin\n', got ''
[zsh status] Expected 0, got 1

stdout:
stderr: 
zsh: bad pattern: [!bin
toysh7 glob can expand to command and arg

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

stdout:
stderr: 
sh: spec/testdata/echo.sz: Permission denied
zsh8 glob after var expansion

[zsh stdout] Expected '_tmp/a.A _tmp/aa.A _tmp/b.B\n', got '_tmp/*.A _tmp/*.B\n'

stdout:
_tmp/*.A _tmp/*.B
stderr:
toysh8 glob after var expansion

[toysh stdout] Expected '_tmp/a.A _tmp/aa.A _tmp/b.B\n', got '_tmp/aa.A _tmp/a.A _tmp/b.B\n'

stdout:
_tmp/aa.A _tmp/a.A _tmp/b.B
stderr:
zsh11 glob after $@ expansion

[zsh stdout] Expected '_tmp/b.B\n', got '_tmp/*.B\n'

stdout:
_tmp/*.B
stderr:
zsh12 no glob after ~ expansion

[zsh stdout] Expected '*/*.py\n', got ''
[zsh status] Expected 0, got 1

stdout:
stderr: 
zsh: no matches found: */*.py
sush12 no glob after ~ expansion

[sush stdout] Expected '*/*.py\n', got '_tmp/*.py\n'

stdout:
_tmp/*.py
stderr:
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 "("
zsh13 store literal globs in array then expand

[zsh stdout] Expected '_tmp/a.A _tmp/aa.A _tmp/b.B\n', got '_tmp/*.A _tmp/*.B\n'

stdout:
_tmp/*.A _tmp/*.B
stderr:
toysh13 store literal globs in array then expand

[toysh stdout] Expected '_tmp/a.A _tmp/aa.A _tmp/b.B\n', got ''
[toysh status] Expected 0, got 2

stdout:
stderr: 
main: line 2: sh: syntax error: "_tmp/*.A"
dash14 glob inside array

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

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

[toysh stdout] Expected '_tmp/a.A _tmp/aa.A _tmp/b.B\n', got ''
[toysh status] Expected 0, got 2

stdout:
stderr: 
main: line 2: sh: syntax error: _tmp/*.A
zsh15 glob with escaped - in char class

[zsh stdout] Expected '_tmp/c.C _tmp/c.C _tmp/foo.-\n', got '_tmp/c.C _tmp/c.C\n'

stdout:
_tmp/c.C _tmp/c.C
stderr:
toysh15 glob with escaped - in char class

[toysh stdout] Expected '_tmp/c.C _tmp/c.C _tmp/foo.-\n', got '_tmp/c.C _tmp/c.C\n'

stdout:
_tmp/c.C _tmp/c.C
stderr:
sush15 glob with escaped - in char class

[sush stdout] Expected '_tmp/c.C _tmp/c.C _tmp/foo.-\n', got '_tmp/c.C _tmp/c.C\n'

stdout:
_tmp/c.C _tmp/c.C
stderr:
mksh16 glob with char class expression

stdout:
_tmp/*.[[:punct:]E]
stderr:
toysh16 glob with char class expression

[toysh stdout] Expected '_tmp/e.E _tmp/foo.-\n', got '_tmp/*.[[:punct:]E]\n'

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

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

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

[zsh stdout] Expected '_tmp/foo.- _tmp/*.[[:punct:]]\n', got '_tmp/foo.- _tmp/foo.-\n'

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

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

[ksh stdout] Expected '_tmp/foo.- _tmp/*.[[:punct:]]\n', got '_tmp/foo.- _tmp/foo.-\n'

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

[toysh stdout] Expected '_tmp/foo.- _tmp/*.[[:punct:]]\n', got '_tmp/*.[[:punct:]] _tmp/*.[[:punct:]]\n'

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

[sush stdout] Expected '_tmp/foo.- _tmp/*.[[:punct:]]\n', got '_tmp/foo.- _tmp/foo.-\n'

stdout:
_tmp/foo.- _tmp/foo.-
stderr:
zsh20 Glob after var manipulation

[zsh stdout] Expected '_tmp/*.zzzZ _tmp/bar.zzz _tmp/foo.zzz\n', got '_tmp/*.zzzZ _tmp/*.zzz\n'

stdout:
_tmp/*.zzzZ _tmp/*.zzz
stderr:
toysh20 Glob after var manipulation

[toysh stdout] Expected '_tmp/*.zzzZ _tmp/bar.zzz _tmp/foo.zzz\n', got '_tmp/*.zzzZ _tmp/foo.zzz _tmp/bar.zzz\n'

stdout:
_tmp/*.zzzZ _tmp/foo.zzz _tmp/bar.zzz
stderr:
zsh21 Glob after part joining

[zsh stdout] Expected '_tmp/*.yy _tmp/bar.yyy _tmp/foo.yyy\n', got '_tmp/*.yy _tmp/*.yyy\n'

stdout:
_tmp/*.yy _tmp/*.yyy
stderr:
toysh21 Glob after part joining

[toysh stdout] Expected '_tmp/*.yy _tmp/bar.yyy _tmp/foo.yyy\n', got '_tmp/*.yy _tmp/foo.yyy _tmp/bar.yyy\n'

stdout:
_tmp/*.yy _tmp/foo.yyy _tmp/bar.yyy
stderr:
toysh23 set -o noglob

[toysh stdout] Expected '_tmp/spec-tmp/a.zz _tmp/spec-tmp/b.zz\n_tmp/spec-tmp/*.zz\n' Got '_tmp/spec-tmp/b.zz _tmp/spec-tmp/a.zz\n_tmp/spec-tmp/b.zz _tmp/spec-tmp/a.zz\n'

stdout:
_tmp/spec-tmp/b.zz _tmp/spec-tmp/a.zz
_tmp/spec-tmp/b.zz _tmp/spec-tmp/a.zz
stderr:
set: bad -o noglob
dash25 Splitting/Globbing doesn't happen on local assignment

stdout:
stderr: 
dash: 4: local: INSTALL-old.txt: bad variable name
toysh25 Splitting/Globbing doesn't happen on local assignment

[toysh stdout] Expected 'void *\n', got 'void\n'

stdout:
void
stderr:
local: bad fastlex.so
local: bad line_input.so
local: bad fanos.so
local: bad fastfunc.so
local: bad NOTES-jshape.txt
local: bad libc.so
local: bad Python-2.7.13
local: bad shell.nix
local: bad INSTALL-old.txt
local: bad LICENSE.txt
local: bad NOTES.txt
local: bad oils-version.txt
local: bad README-index.md
local: bad local.sh
local: bad configure-test.sh
local: bad INSTALL.txt
local: bad README.md
local: bad Z.txt
local: bad _soil-jobs
local: bad Rplots.pdf
local: bad posix_.so
local: bad TODO.txt
local: bad build.ninja
local: bad README-native.txt
local: bad NINJA-config.sh
zsh26 Glob of unescaped [[] and []]

[zsh stdout] Expected '[ ]\n[ ]\n', got ''
[zsh status] Expected 0, got 1

stdout:
stderr: 
zsh: bad pattern: /home/andy/git/oils-for-unix/oils/_tmp/spec-tmp/glob.test.sh/26-zsh/[
zsh: no matches found: [[z]
toysh26 Glob of unescaped [[] and []]

[toysh stdout] Expected '[ ]\n[ ]\n', got '[[z] []z]\n[[z] []z]\n'

stdout:
[[z] []z]
[[z] []z]
stderr:
sush26 Glob of unescaped [[] and []]

[sush stdout] Expected '[ ]\n[ ]\n', got '[ ]\n[ []z]\n'

stdout:
[ ]
[ []z]
stderr:
brush26 Glob of unescaped [[] and []]

[brush stdout] Expected '[ ]\n[ ]\n', got '[ []z]\n[ []z]\n'

stdout:
[ []z]
[ []z]
stderr:
dash27 Glob of negated unescaped [[] and []]

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

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

[ksh stdout] Expected '_G _G\n_G _G\n', got '_[^[z] _[^]z]\n_[^[z] _[^]z]\n'

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

[sush stdout] Expected '_G _G\n_G _G\n', got '_G _G\n_G _[^]z]\n'

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

[brush stdout] Expected '_G _G\n_G _G\n', got '_G _[^]z]\n_G _[^]z]\n'

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

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

[toysh 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:
sush28 PatSub of unescaped [[] and []]

[sush 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:
brush28 PatSub of unescaped [[] and []]

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

stdout:
<foo]
<foo]
[foo]
stderr:
ERROR error: invalid regex: Parsing error at position 11: Invalid character class; expression: '(?ms)[\]z\]'
osh28 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:
dash29 PatSub of negated unescaped [[] and []]

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

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

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

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

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

stdout:
[foo]
[foo]
[foo]
stderr:
sush29 PatSub of negated unescaped [[] and []]

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

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

[brush stdout] Expected '[<<<<\n>>>>]\n[<<<<\n', got '[<<<<\n[<<<<\n'

stdout:
[<<<<
[<<<<
stderr:
ERROR error: invalid regex: Parsing error at position 12: Invalid character class; expression: '(?ms)[^\]z\]'
osh29 PatSub of negated unescaped [[] and []]

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

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

stdout:
__a__
stderr:
ash30 Glob unicode char

stdout:
__a__
stderr:
mksh30 Glob unicode char

stdout:
__a__
stderr:
dash31 Glob ordering respects LC_COLLATE (zsh respects this too)

stdout:
hello hello-test.sh hello.py hello_preamble.sh
hello hello-test.sh hello.py hello_preamble.sh
stderr:
ash31 Glob ordering respects LC_COLLATE (zsh respects this too)

stdout:
hello hello-test.sh hello.py hello_preamble.sh
hello hello-test.sh hello.py hello_preamble.sh
stderr:
mksh31 Glob ordering respects LC_COLLATE (zsh respects this too)

stdout:
hello hello-test.sh hello.py hello_preamble.sh
hello hello-test.sh hello.py hello_preamble.sh
stderr:
ksh31 Glob ordering respects LC_COLLATE (zsh respects this too)

[ksh stdout] Expected 'hello hello-test.sh hello.py hello_preamble.sh\nhello hello_preamble.sh hello.py hello-test.sh\n' Got 'hello hello-test.sh hello.py hello_preamble.sh\nhello hello-test.sh hello.py hello_preamble.sh\n'

stdout:
hello hello-test.sh hello.py hello_preamble.sh
hello hello-test.sh hello.py hello_preamble.sh
stderr:
toysh31 Glob ordering respects LC_COLLATE (zsh respects this too)

[toysh stdout] Expected 'hello hello-test.sh hello.py hello_preamble.sh\nhello hello_preamble.sh hello.py hello-test.sh\n' Got 'hello_preamble.sh hello-test.sh hello.py hello\nhello_preamble.sh hello-test.sh hello.py hello\n'
[toysh status] Expected 0, got -6

stdout:
hello_preamble.sh hello-test.sh hello.py hello
hello_preamble.sh hello-test.sh hello.py hello
stderr:
free(): double free detected in tcache 2
sush31 Glob ordering respects LC_COLLATE (zsh respects this too)

[sush stdout] Expected 'hello hello-test.sh hello.py hello_preamble.sh\nhello hello_preamble.sh hello.py hello-test.sh\n' Got 'hello hello-test.sh hello.py hello_preamble.sh\nhello hello-test.sh hello.py hello_preamble.sh\n'

stdout:
hello hello-test.sh hello.py hello_preamble.sh
hello hello-test.sh hello.py hello_preamble.sh
stderr:
brush31 Glob ordering respects LC_COLLATE (zsh respects this too)

[brush stdout] Expected 'hello hello-test.sh hello.py hello_preamble.sh\nhello hello_preamble.sh hello.py hello-test.sh\n' Got 'hello hello-test.sh hello.py hello_preamble.sh\nhello hello-test.sh hello.py hello_preamble.sh\n'

stdout:
hello hello-test.sh hello.py hello_preamble.sh
hello hello-test.sh hello.py hello_preamble.sh
stderr:
osh31 Glob ordering respects LC_COLLATE (zsh respects this too)

[osh stdout] Expected 'hello hello-test.sh hello.py hello_preamble.sh\nhello hello_preamble.sh hello.py hello-test.sh\n' Got 'hello hello-test.sh hello.py hello_preamble.sh\nhello hello-test.sh hello.py hello_preamble.sh\n'

stdout:
hello hello-test.sh hello.py hello_preamble.sh
hello hello-test.sh hello.py hello_preamble.sh
stderr: