Results for prompt.test.sh

statusbashoshosh_ALT
pass 181919
ok 011
BUG 200
total202020
casebashoshosh_ALTdescription
0pass pass pass sh -i
1pass pass pass \[\] are non-printing
2pass pass pass literal escapes
3pass pass pass special case for $
4pass pass pass PS1 evaluation order
5pass pass pass PS1 evaluation order 2
6pass pass pass \1004
7pass pass pass \001 octal literals are supported
8pass pass pass \555 is beyond max octal byte of \377 and wrapped to m
9pass pass pass \x55 hex literals not supported
10BUG pass pass Single backslash
details
11BUG pass pass Escaped backslash
details
12pass pass pass \0001 octal literals are not supported
13pass pass pass \u0001 unicode literals not supported
14pass pass pass constant string
15pass pass pass hostname
16pass pass pass username
17pass pass pass current working dir
18pass pass pass \W is basename of working dir
19pass ok ok @P with array
detailsdetails
56 passed, 2 OK, 0 not implemented, 2 BUG, 0 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

bash10 Single backslash

stdout:
\
stderr:
bash11 Escaped backslash

stdout:
\
stderr:
osh19 @P with array

stdout:
status=1
status=1
status=1
stderr:
  echo ${@@P}
  ^~~~
[ -c flag ]:1: fatal: Can't use @P on value.MaybeStrArray
  echo ${*@P}
  ^~~~
[ -c flag ]:1: fatal: Can't use @P on value.MaybeStrArray
  a=(x y); echo ${a@P}
                ^~
[ -c flag ]:1: fatal: Array 'a' can't be referred to as a scalar (without @ or *)
osh_ALT19 @P with array

stdout:
status=1
status=1
status=1
stderr:
  echo ${@@P}
  ^~~~
[ -c flag ]:1: fatal: Can't use @P on value.MaybeStrArray
  echo ${*@P}
  ^~~~
[ -c flag ]:1: fatal: Can't use @P on value.MaybeStrArray
  a=(x y); echo ${a@P}
                ^~
[ -c flag ]:1: fatal: Array 'a' can't be referred to as a scalar (without @ or *)