Results for globstar.test.sh

statusoshosh-cpp
pass 11
FAIL 44
total55
caseoshosh-cppdescription
0pass pass globstar is off -> ** is treated like *
1FAIL FAIL each occurrence of ** recurses through all depths
detailsdetails
2FAIL FAIL within braces, globstar works when there is a comma
detailsdetails
3FAIL FAIL ** behaves like * if adjacent to anything other than /
detailsdetails
4FAIL FAIL in zsh, ***/ follows symlinked directories, while **/ does not
detailsdetails
2 passed, 0 OK, 0 not implemented, 0 BUG, 4 failed, 0 timeouts, 0 cases skipped
4 failed under osh

Details on runs that didn't PASS

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'
osh-cpp1 each occurrence of ** recurses through all depths

[osh-cpp 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'
osh-cpp2 within braces, globstar works when there is a comma

[osh-cpp 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'
osh-cpp3 ** behaves like * if adjacent to anything other than /

[osh-cpp 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'
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:
osh-cpp4 in zsh, ***/ follows symlinked directories, while **/ does not

[osh-cpp 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: