Results for globstar.test.sh

statusbashmkshkshtoyshsushbrushosh
pass 4110411
N-I 1000000
FAIL 0445144
total5555555
casebashmkshkshtoyshsushbrushoshdescription
0pass pass pass FAIL pass pass pass globstar is off -> ** is treated like *
details
1pass FAIL FAIL FAIL pass FAIL FAIL each occurrence of ** recurses through all depths
detailsdetailsdetailsdetailsdetails
2pass FAIL FAIL FAIL pass FAIL FAIL within braces, globstar works when there is a comma
detailsdetailsdetailsdetailsdetails
3pass FAIL FAIL FAIL pass FAIL FAIL ** behaves like * if adjacent to anything other than /
detailsdetailsdetailsdetailsdetails
4N-I FAIL FAIL FAIL FAIL FAIL FAIL in zsh, ***/ follows symlinked directories, while **/ does not
detailsdetailsdetailsdetailsdetailsdetailsdetails
12 passed, 0 OK, 1 not implemented, 0 BUG, 22 failed, 0 timeouts, 0 cases skipped
4 failed under osh

Details on runs that didn't PASS

toysh0 globstar is off -> ** is treated like *

[toysh stdout] Expected 'c/leaf.md\n', got ''
[toysh status] Expected 0, got -6

stdout:
stderr: 
munmap_chunk(): invalid pointer
mksh1 each occurrence of ** recurses through all depths

[mksh stdout] Expected 'c/leaf.md\nc/subdir/leaf.md\nleaf.md\n\nc/leaf.md\nc/subdir/leaf.md\nleaf.md\n' Got 'c/leaf.md\n\nc/subdir/leaf.md\n'

stdout:
c/leaf.md

c/subdir/leaf.md
stderr:
mksh: <stdin>[1]: shopt: not found
ksh1 each occurrence of ** recurses through all depths

[ksh stdout] Expected 'c/leaf.md\nc/subdir/leaf.md\nleaf.md\n\nc/leaf.md\nc/subdir/leaf.md\nleaf.md\n' Got 'c/leaf.md\n\nc/subdir/leaf.md\n'

stdout:
c/leaf.md

c/subdir/leaf.md
stderr:
E: ksh: <stdin>[1]: shopt: inaccessible or not found
toysh1 each occurrence of ** recurses through all depths

[toysh stdout] Expected 'c/leaf.md\nc/subdir/leaf.md\nleaf.md\n\nc/leaf.md\nc/subdir/leaf.md\nleaf.md\n' Got 'c/leaf.md\n\nc/subdir/leaf.md\n'

stdout:
c/leaf.md

c/subdir/leaf.md
stderr:
sh: shopt: No such file or directory
brush1 each occurrence of ** recurses through all depths

[brush stdout] Expected 'c/leaf.md\nc/subdir/leaf.md\nleaf.md\n\nc/leaf.md\nc/subdir/leaf.md\nleaf.md\n' Got 'c/leaf.md\n\nc/subdir/leaf.md\n'

stdout:
c/leaf.md

c/subdir/leaf.md
stderr:
osh1 each occurrence of ** recurses through all depths

[osh stdout] Expected 'c/leaf.md\nc/subdir/leaf.md\nleaf.md\n\nc/leaf.md\nc/subdir/leaf.md\nleaf.md\n' Got 'c/leaf.md\n\nc/subdir/leaf.md\n'

stdout:
c/leaf.md

c/subdir/leaf.md
stderr:
  shopt -s globstar
  ^~~~~
[ stdin ]:1: 'shopt' got invalid option 'globstar'
mksh2 within braces, globstar works when there is a comma

[mksh stdout] Expected 'c/subdir/leaf.md\n', got '**/*.*\n'

stdout:
**/*.*
stderr:
mksh: <stdin>[1]: shopt: not found
ksh2 within braces, globstar works when there is a comma

[ksh stdout] Expected 'c/subdir/leaf.md\n', got '**/*.*\n'

stdout:
**/*.*
stderr:
E: ksh: <stdin>[1]: shopt: inaccessible or not found
toysh2 within braces, globstar works when there is a comma

[toysh stdout] Expected 'c/subdir/leaf.md\n', got '**/*.*\n'

stdout:
**/*.*
stderr:
sh: shopt: No such file or directory
brush2 within braces, globstar works when there is a comma

[brush stdout] Expected 'c/subdir/leaf.md\n', got '**/*.*\n'

stdout:
**/*.*
stderr:
osh2 within braces, globstar works when there is a comma

[osh stdout] Expected 'c/subdir/leaf.md\n', got '**/*.*\n'

stdout:
**/*.*
stderr:
  shopt -s globstar
  ^~~~~
[ stdin ]:1: 'shopt' got invalid option 'globstar'
mksh3 ** behaves like * if adjacent to anything other than /

[mksh stdout] Expected 'directory/leaf.md leaf.md\ndirectory/leaf.md\ndirectory/leaf.md\ndirectory/leaf.md\ndirectory/leaf.md\n' Got 'directory/leaf.md\ndirectory/**/*.md\ndirectory/leaf.md\ndirectory/leaf.md\ndirectory/leaf.md\n'

stdout:
directory/leaf.md
directory/**/*.md
directory/leaf.md
directory/leaf.md
directory/leaf.md
stderr:
mksh: <stdin>[1]: shopt: not found
ksh3 ** behaves like * if adjacent to anything other than /

[ksh stdout] Expected 'directory/leaf.md leaf.md\ndirectory/leaf.md\ndirectory/leaf.md\ndirectory/leaf.md\ndirectory/leaf.md\n' Got 'directory/leaf.md\ndirectory/**/*.md\ndirectory/leaf.md\ndirectory/leaf.md\ndirectory/leaf.md\n'

stdout:
directory/leaf.md
directory/**/*.md
directory/leaf.md
directory/leaf.md
directory/leaf.md
stderr:
E: ksh: <stdin>[1]: shopt: inaccessible or not found
toysh3 ** behaves like * if adjacent to anything other than /

[toysh stdout] Expected 'directory/leaf.md leaf.md\ndirectory/leaf.md\ndirectory/leaf.md\ndirectory/leaf.md\ndirectory/leaf.md\n' Got 'directory/leaf.md\ndirectory/**/*.md\ndirectory/leaf.md\ndirectory/leaf.md\ndirectory/leaf.md\n'

stdout:
directory/leaf.md
directory/**/*.md
directory/leaf.md
directory/leaf.md
directory/leaf.md
stderr:
sh: shopt: No such file or directory
brush3 ** behaves like * if adjacent to anything other than /

[brush stdout] Expected 'directory/leaf.md leaf.md\ndirectory/leaf.md\ndirectory/leaf.md\ndirectory/leaf.md\ndirectory/leaf.md\n' Got 'directory/leaf.md\ndirectory/**/*.md\ndirectory/leaf.md\ndirectory/leaf.md\ndirectory/leaf.md\n'

stdout:
directory/leaf.md
directory/**/*.md
directory/leaf.md
directory/leaf.md
directory/leaf.md
stderr:
osh3 ** behaves like * if adjacent to anything other than /

[osh stdout] Expected 'directory/leaf.md leaf.md\ndirectory/leaf.md\ndirectory/leaf.md\ndirectory/leaf.md\ndirectory/leaf.md\n' Got 'directory/leaf.md\ndirectory/**/*.md\ndirectory/leaf.md\ndirectory/leaf.md\ndirectory/leaf.md\n'

stdout:
directory/leaf.md
directory/**/*.md
directory/leaf.md
directory/leaf.md
directory/leaf.md
stderr:
  shopt -s globstar
  ^~~~~
[ stdin ]:1: 'shopt' got invalid option 'globstar'
bash4 in zsh, ***/ follows symlinked directories, while **/ does not

stdout:
stderr: 
mksh4 in zsh, ***/ follows symlinked directories, while **/ does not

[mksh stdout] Expected 'directory-2/leaf-2.md\ndirectory-1/symlink/leaf-2.md directory-2/leaf-2.md\n' Got 'directory-2/leaf-2.md\ndirectory-2/leaf-2.md\n'

stdout:
directory-2/leaf-2.md
directory-2/leaf-2.md
stderr:
ksh4 in zsh, ***/ follows symlinked directories, while **/ does not

[ksh stdout] Expected 'directory-2/leaf-2.md\ndirectory-1/symlink/leaf-2.md directory-2/leaf-2.md\n' Got 'directory-2/leaf-2.md\ndirectory-2/leaf-2.md\n'

stdout:
directory-2/leaf-2.md
directory-2/leaf-2.md
stderr:
toysh4 in zsh, ***/ follows symlinked directories, while **/ does not

[toysh stdout] Expected 'directory-2/leaf-2.md\ndirectory-1/symlink/leaf-2.md directory-2/leaf-2.md\n' Got ''
[toysh status] Expected 0, got -6

stdout:
stderr: 
munmap_chunk(): invalid pointer
sush4 in zsh, ***/ follows symlinked directories, while **/ does not

[sush stdout] Expected 'directory-2/leaf-2.md\ndirectory-1/symlink/leaf-2.md directory-2/leaf-2.md\n' Got 'directory-2/leaf-2.md\ndirectory-2/leaf-2.md\n'

stdout:
directory-2/leaf-2.md
directory-2/leaf-2.md
stderr:
brush4 in zsh, ***/ follows symlinked directories, while **/ does not

[brush stdout] Expected 'directory-2/leaf-2.md\ndirectory-1/symlink/leaf-2.md directory-2/leaf-2.md\n' Got 'directory-2/leaf-2.md\ndirectory-2/leaf-2.md\n'

stdout:
directory-2/leaf-2.md
directory-2/leaf-2.md
stderr:
osh4 in zsh, ***/ follows symlinked directories, while **/ does not

[osh stdout] Expected 'directory-2/leaf-2.md\ndirectory-1/symlink/leaf-2.md directory-2/leaf-2.md\n' Got 'directory-2/leaf-2.md\ndirectory-2/leaf-2.md\n'

stdout:
directory-2/leaf-2.md
directory-2/leaf-2.md
stderr: