| status | osh | osh-cpp | |
| pass | 7 | 6 | |
| ok | 3 | 2 | |
| FAIL | 0 | 2 | |
| total | 10 | 10 | |
| case | osh | osh-cpp | description |
| 0 | pass | FAIL | printf %q newline |
| details | |||
| 1 | pass | pass | printf %q spaces |
| 2 | ok | FAIL | printf %q quotes |
| details | details | ||
| 3 | ok | ok | printf %q unprintable |
| details | details | ||
| 4 | ok | ok | printf %q unicode |
| details | details | ||
| 5 | pass | pass | printf %q invalid unicode |
| 6 | pass | pass | set |
| 7 | pass | pass | declare |
| 8 | pass | pass | ${var@Q} |
| 9 | pass | pass | xtrace |
13 passed, 5 OK, 0 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases skipped
| osh-cpp | 0 printf %q newline [osh-cpp stdout] Expected "$'one\\ntwo'\nroundtrip-ok\n" Got "$'one\\ntwo'\n" [osh-cpp status] Expected 0 Got 2 stdout: $'one\ntwo'stderr: quoted="$(printf '%q\n' "$newline")"
^
[ stdin ]:6: Invalid word while parsing command list
|
| osh | 2 printf %q quotes stdout: $'\'"' roundtrip-okstderr: |
| osh-cpp | 2 printf %q quotes [osh-cpp stdout] Expected '$\'\\\'"\'\nroundtrip-ok\n' Got '$\'\\\'"\'\n' [osh-cpp status] Expected 0 Got 2 stdout: $'\'"'stderr: quoted="$(printf '%q\n' "$quotes")"
^
[ stdin ]:6: Invalid word while parsing command list
|
| osh | 3 printf %q unprintable stdout: $'\xff'stderr: |
| osh-cpp | 3 printf %q unprintable stdout: $'\xff'stderr: |
| osh | 4 printf %q unicode stdout: 'μ'stderr: |
| osh-cpp | 4 printf %q unicode stdout: 'μ'stderr: |