1 ./history.tests: line 17: history: -x: invalid option
2 history: usage: history [-c] [-d offset] [n] or history -anrw [filename] or history -ps arg [arg...]
3 ./history.tests: line 19: history: cannot use more than one of -anrw
4 ./history.tests: line 22: fc: -v: invalid option
5 fc: usage: fc [-e ename] [-lnr] [first] [last] or fc -s [pat=rep] [command]
6 1 for i in one two three; do echo $i; done
7 2 /bin/sh -c 'echo this is $0'
10 1 for i in one two three; do echo $i; done
11 2 /bin/sh -c 'echo this is $0'
14 for i in one two three; do echo $i; done
15 /bin/sh -c 'echo this is $0'
20 2 /bin/sh -c 'echo this is $0'
21 1 for i in one two three; do echo $i; done
24 /bin/sh -c 'echo this is $0'
25 for i in one two three; do echo $i; done
26 1 for i in one two three; do echo $i; done
27 2 /bin/sh -c 'echo this is $0'
30 5 echo line for history
32 for i in one two three; do echo $i; done
33 /bin/sh -c 'echo this is $0'
37 displaying $HISTFILE after history -a
39 HISTFILE=$TMPDIR/newhistory
40 1 for i in one two three; do echo $i; done
41 2 /bin/sh -c 'echo this is $0'
44 5 echo line for history
45 6 HISTFILE=$TMPDIR/newhistory
46 7 echo displaying \$HISTFILE after history -a
48 for i in one two three; do echo $i; done
49 /bin/sh -c 'echo this is $0'
53 HISTFILE=$TMPDIR/newhistory
54 echo displaying \$HISTFILE after history -a
56 1 for i in one two three; do echo $i; done
57 2 /bin/sh -c 'echo this is $0'
60 5 echo line for history
61 6 HISTFILE=$TMPDIR/newhistory
62 7 echo displaying \$HISTFILE after history -a
64 9 echo line 2 for history
65 echo line 2 for history
66 echo line 2 for history
67 1 for i in one two three; do echo $i; done
68 2 /bin/sh -c 'echo this is $0'
71 5 echo line for history
72 6 HISTFILE=$TMPDIR/newhistory
73 7 echo displaying \$HISTFILE after history -a
75 9 echo line 2 for history
76 10 # this should show up as one history entry
77 11 for x in one two three; do :; done
79 echo line 2 for history
82 5 echo line for history
83 6 HISTFILE=$TMPDIR/newhistory
84 7 echo displaying \$HISTFILE after history -a
86 9 echo line 2 for history
87 10 # this should show up as one history entry
88 11 for x in one two three; do :; done
89 12 # just a basic test. a full test suite for history expansion should be
92 15 echo line 2 for history
96 5 echo line for history
97 6 HISTFILE=$TMPDIR/newhistory
98 7 echo displaying \$HISTFILE after history -a
100 ./history.tests: line 90: fc: no command found
101 15 echo line 2 for history
104 18 # now an out-of-range error because of the one=two not found in history
110 ./history.tests: line 105: fc: no command found
144 echo ${BUSH_VERSION%\.*}
146 echo ${BUSH_VERSION%\.*}
170 ./history3.sub: line 40: history: 16: history position out of range
171 ./history3.sub: line 41: history: 200: history position out of range
172 ./history3.sub: line 42: history: -20: history position out of range
173 ./history3.sub: line 43: history: -50: history position out of range
174 ./history3.sub: line 44: history: 5-0xaf: history position out of range
232 ./history5.sub: line 24: fc: history specification out of range
233 ./history5.sub: line 25: fc: no command found
256 8 echo out of range 1
258 8 echo out of range 1
260 10 echo out of range 2
262 10 echo out of range 2
264 12 echo out of range 3