1 ./history.tests: line 4: 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 6: history: cannot use more than one of -anrw
4 ./history.tests: line 9: 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=/tmp/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=/tmp/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=/tmp/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=/tmp/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=/tmp/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=/tmp/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=/tmp/newhistory
98 7 echo displaying \$HISTFILE after history -a
100 ./history.tests: line 75: fc: history specification out of range
102 15 echo line 2 for history
110 ./history.tests: line 90: fc: no command found
144 echo ${BASH_VERSION%\.*}
146 echo ${BASH_VERSION%\.*}