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 "$@" }
spec test index / oilshell.org
status | bash | osh | |
pass | 25 | 24 | |
ok | 0 | 1 | |
total | 25 | 25 | |
case | bash | osh | description |
0 | pass | pass | sh -i |
1 | pass | pass | \[\] are non-printing |
2 | pass | pass | literal escapes |
3 | pass | pass | special case for $ |
4 | pass | pass | PS1 evaluation order |
5 | pass | pass | PS1 evaluation order 2 |
6 | pass | pass | \1004 |
7 | pass | pass | \001 octal literals are supported |
8 | pass | pass | \555 is beyond max octal byte of \377 and wrapped to m |
9 | pass | pass | \x55 hex literals not supported |
10 | pass | pass | Single backslash |
11 | pass | pass | Escaped backslash |
12 | pass | pass | \0001 octal literals are not supported |
13 | pass | pass | \u0001 unicode literals not supported |
14 | pass | pass | constant string |
15 | pass | pass | hostname |
16 | pass | pass | username |
17 | pass | pass | current working dir |
18 | pass | pass | \W is basename of working dir |
19 | pass | pass | \A for 24 hour time |
20 | pass | pass | \D{%H:%M} for strftime |
21 | pass | pass | \D{} for locale specific strftime |
22 | pass | pass | \s and \v for shell and version |
23 | pass | ok | @P with array |
details | |||
24 | pass | pass | default PS1 |
49 passed, 1 OK, 0 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases skipped
osh | 23 @P with array stdout: status=1 status=1 x status=0stderr: echo ${@@P} ^~ [ -c flag ]:1: fatal: Can't use @P on BashArray echo ${*@P} ^~ [ -c flag ]:1: fatal: Can't use @P on BashArray |