| status | bash | osh | |
| pass | 13 | 12 | |
| N-I | 1 | 0 | |
| FAIL | 0 | 2 | |
| total | 14 | 14 | |
| 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 |
| 11 | pass | pass | fc ignores too many args |
| 12 | N-I | pass | fc errors out on too many args with strict_arg_parse |
| details | |||
| 13 | pass | pass | fc -l when no history is present |
25 passed, 0 OK, 1 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.37$ osh-0.37$ osh-0.37$ osh-0.37$ osh-0.37$ osh-0.37$ fc -l -3
^~
[ stdin -i ]:6: 'fc' doesn't accept flag -3
osh-0.37$ osh-0.37$ |
| 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.37$ osh-0.37$ osh-0.37$ osh-0.37$ osh-0.37$ osh-0.37$ fc -l -3 -2
^~
[ stdin -i ]:6: 'fc' doesn't accept flag -3
osh-0.37$ osh-0.37$ |
| bash | 12 fc errors out on too many args with strict_arg_parse stdout: stderr: bash: line 1: shopt: strict_arg_parse: invalid shell option name |