Results for glob-bash.test.sh

statusoshosh-cpp
pass 77
ok 11
total88
caseoshosh-cppdescription
0pass pass shopt -s nullglob
1pass pass shopt -s failglob in command context
2pass pass shopt -s failglob in loop context
3pass pass shopt -s failglob in array literal context
4pass pass shopt -s failglob exits properly in command context with set -e
5pass pass shopt -s failglob exits properly in loop context with set -e
6ok ok shopt -s failglob behavior on single line with semicolon
detailsdetails
7pass pass dotglob (bash option that dashglob is roughly consistent with)
14 passed, 2 OK, 0 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

osh6 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
osh-cpp6 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