| status | osh | osh-cpp | |
| pass | 12 | 12 | |
| FAIL | 2 | 2 | |
| total | 14 | 14 | |
| case | osh | osh-cpp | description |
| 0 | pass | pass | fc -l lists history commands |
| 1 | pass | pass | fc -ln lists history commands without numbers |
| 2 | pass | pass | fc -lr lists history commands in reverse order |
| 3 | pass | pass | fc -lnr lists history commands without numbers in reverse order |
| 4 | pass | pass | fc -l lists history commands with default page size |
| 5 | pass | pass | fc -l [first] where first is an index |
| 6 | FAIL | FAIL | fc -l [first] where first is an offset from current command |
| details | details | ||
| 7 | pass | pass | fc -l [first] [last] where first and last are indexes |
| 8 | FAIL | FAIL | fc -l [first] [last] where first and last are offsets from current command |
| details | details | ||
| 9 | pass | pass | fc -l [first] [last] where first and last are reversed indexes |
| 10 | pass | pass | fc -lr [first] [last] where first and last are reversed indexes does not undo reverse |
| 11 | pass | pass | fc ignores too many args |
| 12 | pass | pass | fc errors out on too many args with strict_arg_parse |
| 13 | pass | pass | fc -l when no history is present |
24 passed, 0 OK, 0 not implemented, 0 BUG, 2 failed, 0 timeouts, 0 cases skipped 2 failed under osh
| osh | 6 fc -l [first] where first is an offset from current command [osh stdout] Expected '2\t echo 1\n3\t echo 2\n4\t echo 3\n^D\n' Got '^D\n' stdout: ^Dstderr: osh-0.36$ osh-0.36$ osh-0.36$ osh-0.36$ osh-0.36$ osh-0.36$ fc -l -3
^~
[ stdin -i ]:6: 'fc' doesn't accept flag -3
osh-0.36$ osh-0.36$ |
| osh-cpp | 6 fc -l [first] where first is an offset from current command [osh-cpp stdout] Expected '2\t echo 1\n3\t echo 2\n4\t echo 3\n^D\n' Got '^D\n' stdout: ^Dstderr: osh-0.36$ osh-0.36$ osh-0.36$ osh-0.36$ osh-0.36$ osh-0.36$ fc -l -3
^~
[ stdin -i ]:6: 'fc' doesn't accept flag -3
osh-0.36$ osh-0.36$ |
| osh | 8 fc -l [first] [last] where first and last are offsets from current command [osh stdout] Expected '2\t echo 1\n3\t echo 2\n^D\n' Got '^D\n' stdout: ^Dstderr: osh-0.36$ osh-0.36$ osh-0.36$ osh-0.36$ osh-0.36$ osh-0.36$ fc -l -3 -2
^~
[ stdin -i ]:6: 'fc' doesn't accept flag -3
osh-0.36$ osh-0.36$ |
| osh-cpp | 8 fc -l [first] [last] where first and last are offsets from current command [osh-cpp stdout] Expected '2\t echo 1\n3\t echo 2\n^D\n' Got '^D\n' stdout: ^Dstderr: osh-0.36$ osh-0.36$ osh-0.36$ osh-0.36$ osh-0.36$ osh-0.36$ fc -l -3 -2
^~
[ stdin -i ]:6: 'fc' doesn't accept flag -3
osh-0.36$ osh-0.36$ |