| status | bash | osh | |
| pass | 11 | 9 | |
| FAIL | 0 | 2 | |
| total | 11 | 11 | |
| case | bash | osh | 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 | pass | FAIL | fc -l [first] where first is an offset from current command |
| details | |||
| 7 | pass | pass | fc -l [first] [last] where first and last are indexes |
| 8 | pass | FAIL | fc -l [first] [last] where first and last are offsets from current command |
| 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 |
20 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 | 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$ |