Results for globstar.test.sh

statusbashzshosh
pass 431
N-I 110
BUG 010
FAIL 004
total555
casebashzshoshdescription
0pass N-I pass globstar is off -> ** is treated like *
details
1pass BUG FAIL each occurrence of ** recurses through all depths
detailsdetails
2pass pass FAIL within braces, globstar works when there is a comma
details
3pass pass FAIL ** behaves like * if adjacent to anything other than /
details
4N-I pass FAIL in zsh, ***/ follows symlinked directories, while **/ does not
detailsdetails
8 passed, 0 OK, 2 not implemented, 1 BUG, 4 failed, 0 timeouts, 0 cases skipped
4 failed under osh

Details on runs that didn't PASS

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

stdout:
stderr: 
zsh1 each occurrence of ** recurses through all depths

stdout:
c/leaf.md
c/subdir/leaf.md
leaf.md

c/leaf.md
c/leaf.md
c/subdir/leaf.md
c/subdir/leaf.md
c/subdir/leaf.md
leaf.md
stderr:
zsh: command not found: shopt
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'
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'
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: 
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: