/home/uke/oil/bin/osh builtin-fc: spec test case results

Results for builtin-fc.test.sh

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

osh0 fc -l lists history commands

stdout:
1	 history -r
2	 echo 1
3	 echo 2
4	 echo 3
^D
stderr:
osh-0.36$ osh-0.36$ osh-0.36$ osh-0.36$ osh-0.36$ osh-0.36$ osh-0.36$ osh-0.36$ 
osh1 fc -ln lists history commands without numbers

stdout:
	 history -r
	 echo 1
	 echo 2
	 echo 3
^D
stderr:
osh-0.36$ osh-0.36$ osh-0.36$ osh-0.36$ osh-0.36$ osh-0.36$ osh-0.36$ osh-0.36$ 
osh2 fc -lr lists history commands in reverse order

stdout:
4	 echo 3
3	 echo 2
2	 echo 1
1	 history -r
^D
stderr:
osh-0.36$ osh-0.36$ osh-0.36$ osh-0.36$ osh-0.36$ osh-0.36$ osh-0.36$ osh-0.36$ 
osh3 fc -lnr lists history commands without numbers in reverse order

stdout:
	 echo 3
	 echo 2
	 echo 1
	 history -r
^D
stderr:
osh-0.36$ osh-0.36$ osh-0.36$ osh-0.36$ osh-0.36$ osh-0.36$ osh-0.36$ osh-0.36$ 
osh4 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
^D
stderr:
osh-0.36$ osh-0.36$ osh-0.36$ osh-0.36$ osh-0.36$ osh-0.36$ osh-0.36$ osh-0.36$ 
osh5 fc -l [first] where first is an index

stdout:
2	 echo 1
3	 echo 2
4	 echo 3
^D
stderr:
osh-0.36$ osh-0.36$ osh-0.36$ osh-0.36$ osh-0.36$ osh-0.36$ osh-0.36$ osh-0.36$ 
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.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$ 
osh7 fc -l [first] [last] where first and last are indexes

stdout:
2	 echo 1
3	 echo 2
^D
stderr:
osh-0.36$ osh-0.36$ osh-0.36$ osh-0.36$ osh-0.36$ osh-0.36$ osh-0.36$ osh-0.36$ 
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.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$ 
osh9 fc -l [first] [last] where first and last are reversed indexes

stdout:
3	 echo 2
2	 echo 1
^D
stderr:
osh-0.36$ osh-0.36$ osh-0.36$ osh-0.36$ osh-0.36$ osh-0.36$ osh-0.36$ osh-0.36$ 
osh10 fc -lr [first] [last] where first and last are reversed indexes does not undo reverse

stdout:
3	 echo 2
2	 echo 1
^D
stderr:
osh-0.36$ osh-0.36$ osh-0.36$ osh-0.36$ osh-0.36$ osh-0.36$ osh-0.36$ osh-0.36$ 
osh11 fc ignores too many args

stdout:
stderr: 
osh12 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
osh13 fc -l when no history is present

stdout:
stderr: