Results for sh-options.test.sh

statusoshosh-cpp
pass 3737
N-I 11
FAIL 11
total3939
caseoshosh-cppdescription
0pass pass $- with -c
1pass pass $- with pipefail
2pass pass $- and more options
3pass pass $- with interactive shell
4pass pass pass short options like sh -e
5pass pass pass long options like sh -o errexit
6pass pass pass shopt options like sh -O nullglob
7pass pass set -o vi/emacs
8pass pass vi and emacs are mutually exclusive
9pass pass interactive shell starts with emacs mode on
10pass pass nounset
11pass pass -u is nounset
12FAIL FAIL -n for no execution (useful with --ast-output)
detailsdetails
13pass pass pipefail
14pass pass shopt -p -o prints 'set' options
15pass pass shopt -o prints 'set' options
16pass pass shopt -p prints 'shopt' options
17pass pass shopt with no flags prints options
18pass pass noclobber off
19pass pass noclobber on
20pass pass noclobber on <>
21pass pass noclobber on >>
22pass pass noclobber on &> >
23pass pass noclobber on &>> >>
24pass pass set without args lists variables
25pass pass set without args and array variables
26N-I N-I set without args and assoc array variables (not in OSH)
detailsdetails
27pass pass shopt -q
28pass pass shopt -q invalid
29pass pass shopt -s strict:all
30pass pass shopt allows for backward compatibility like bash
31pass pass shopt -p validates option names
32pass pass shopt -p -o validates option names
33pass pass stubbed out bash options
34pass pass shopt -s nounset works in YSH, not in bash
35pass pass Unimplemented options - print, query, set, unset
36pass pass Unimplemented options - OSH shopt -s ignore_shopt_not_impl
37pass pass shopt -p exit code (regression)
38pass pass no-ops not shown by shopt -p
74 passed, 0 OK, 2 not implemented, 0 BUG, 1 failed, 0 timeouts, 0 cases skipped
1 failed under osh

Details on runs that didn't PASS

osh12 -n for no execution (useful with --ast-output)

[osh stdout] Expected '1\n' Got '1\n2\n3\n'

stdout:
1
2
3
stderr:
osh-cpp12 -n for no execution (useful with --ast-output)

[osh-cpp stdout] Expected '1\n' Got '1\n2\n3\n'

stdout:
1
2
3
stderr:
osh26 set without args and assoc array variables (not in OSH)

stdout:
stderr: 
  __assoc[a]=b
  ^~~~~~~~
[ stdin ]:3: fatal: Assoc array keys must be strings: $x 'x' "$x" etc. (OILS-ERR-101)
osh-cpp26 set without args and assoc array variables (not in OSH)

stdout:
stderr: 
  __assoc[a]=b
  ^~~~~~~~
[ stdin ]:3: fatal: Assoc array keys must be strings: $x 'x' "$x" etc. (OILS-ERR-101)