/home/uke/oil/bin/osh
12 passed, 0 OK, 0 not implemented, 0 BUG, 2 failed, 0 timeouts, 0 cases skipped 2 failed under osh
| osh | 0 fc -l lists history commands stdout: 1 history -r 2 echo 1 3 echo 2 4 echo 3 ^Dstderr: osh-0.37$ osh-0.37$ osh-0.37$ osh-0.37$ osh-0.37$ osh-0.37$ osh-0.37$ osh-0.37$ |
| osh | 1 fc -ln lists history commands without numbers stdout: history -r echo 1 echo 2 echo 3 ^Dstderr: osh-0.37$ osh-0.37$ osh-0.37$ osh-0.37$ osh-0.37$ osh-0.37$ osh-0.37$ osh-0.37$ |
| osh | 2 fc -lr lists history commands in reverse order stdout: 4 echo 3 3 echo 2 2 echo 1 1 history -r ^Dstderr: osh-0.37$ osh-0.37$ osh-0.37$ osh-0.37$ osh-0.37$ osh-0.37$ osh-0.37$ osh-0.37$ |
| osh | 3 fc -lnr lists history commands without numbers in reverse order stdout: echo 3 echo 2 echo 1 history -r ^Dstderr: osh-0.37$ osh-0.37$ osh-0.37$ osh-0.37$ osh-0.37$ osh-0.37$ osh-0.37$ osh-0.37$ |
| osh | 4 fc -l lists history commands with default page size stdout: 2 echo 1 3 echo 2 4 echo 3 5 echo 4 6 echo 5 7 echo 6 8 echo 7 9 echo 8 10 echo 9 11 echo 10 12 echo 11 13 echo 12 14 echo 13 15 echo 14 16 echo 15 17 echo 16 ^Dstderr: osh-0.37$ osh-0.37$ osh-0.37$ osh-0.37$ osh-0.37$ osh-0.37$ osh-0.37$ osh-0.37$ |
| osh | 5 fc -l [first] where first is an index stdout: 2 echo 1 3 echo 2 4 echo 3 ^Dstderr: osh-0.37$ osh-0.37$ osh-0.37$ osh-0.37$ osh-0.37$ osh-0.37$ osh-0.37$ osh-0.37$ |
| 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 | 7 fc -l [first] [last] where first and last are indexes stdout: 2 echo 1 3 echo 2 ^Dstderr: osh-0.37$ osh-0.37$ osh-0.37$ osh-0.37$ osh-0.37$ osh-0.37$ 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$ |
| osh | 9 fc -l [first] [last] where first and last are reversed indexes stdout: 3 echo 2 2 echo 1 ^Dstderr: osh-0.37$ osh-0.37$ osh-0.37$ osh-0.37$ osh-0.37$ osh-0.37$ osh-0.37$ osh-0.37$ |
| osh | 10 fc -lr [first] [last] where first and last are reversed indexes does not undo reverse stdout: 3 echo 2 2 echo 1 ^Dstderr: osh-0.37$ osh-0.37$ osh-0.37$ osh-0.37$ osh-0.37$ osh-0.37$ osh-0.37$ osh-0.37$ |
| osh | 11 fc ignores too many args stdout: stderr: |
| osh | 12 fc errors out on too many args with strict_arg_parse stdout: too many args!stderr: fc -l 0 1 2 || echo too many args!
^
[ stdin ]:2: 'fc' got too many arguments
|
| osh | 13 fc -l when no history is present stdout: stderr: |