prompt () { run-file prompt "$@" } run-file () { local spec_name=$1; shift; sh-spec spec/$spec_name.test.sh --compare-shells --oils-bin-dir $PWD/bin "$@" } prompt: spec test case results

Results for prompt.test.sh

statusbashosh
pass 2524
ok 01
total2525
casebashoshdescription
0pass pass sh -i
1pass pass \[\] are non-printing
2pass pass literal escapes
3pass pass special case for $
4pass pass PS1 evaluation order
5pass pass PS1 evaluation order 2
6pass pass \1004
7pass pass \001 octal literals are supported
8pass pass \555 is beyond max octal byte of \377 and wrapped to m
9pass pass \x55 hex literals not supported
10pass pass Single backslash
11pass pass Escaped backslash
12pass pass \0001 octal literals are not supported
13pass pass \u0001 unicode literals not supported
14pass pass constant string
15pass pass hostname
16pass pass username
17pass pass current working dir
18pass pass \W is basename of working dir
19pass pass \A for 24 hour time
20pass pass \D{%H:%M} for strftime
21pass pass \D{} for locale specific strftime
22pass pass \s and \v for shell and version
23pass ok @P with array
details
24pass pass default PS1
49 passed, 1 OK, 0 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

osh23 @P with array

stdout:
status=1
status=1
x
status=0
stderr:
  echo ${@@P}
          ^~
[ -c flag ]:1: fatal: Can't use @P on BashArray
  echo ${*@P}
          ^~
[ -c flag ]:1: fatal: Can't use @P on BashArray