Results for builtin-fc.test.sh

statusoshosh-cpp
pass 1212
FAIL 22
total1414
caseoshosh-cppdescription
0pass pass fc -l lists history commands
1pass pass fc -ln lists history commands without numbers
2pass pass fc -lr lists history commands in reverse order
3pass pass fc -lnr lists history commands without numbers in reverse order
4pass pass fc -l lists history commands with default page size
5pass pass fc -l [first] where first is an index
6FAIL FAIL fc -l [first] where first is an offset from current command
detailsdetails
7pass pass fc -l [first] [last] where first and last are indexes
8FAIL FAIL fc -l [first] [last] where first and last are offsets from current command
detailsdetails
9pass pass fc -l [first] [last] where first and last are reversed indexes
10pass pass fc -lr [first] [last] where first and last are reversed indexes does not undo reverse
11pass pass fc ignores too many args
12pass pass fc errors out on too many args with strict_arg_parse
13pass 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

Details on runs that didn't PASS

osh6 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:
^D
stderr:
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-cpp6 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:
^D
stderr:
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$ 
osh8 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:
^D
stderr:
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-cpp8 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:
^D
stderr:
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$