1 1 for i in one two three; do echo $i; done
2 2 /bin/sh -c 'echo this is $0'
5 1 for i in one two three; do echo $i; done
6 2 /bin/sh -c 'echo this is $0'
9 for i in one two three; do echo $i; done
10 /bin/sh -c 'echo this is $0'
15 2 /bin/sh -c 'echo this is $0'
16 1 for i in one two three; do echo $i; done
19 /bin/sh -c 'echo this is $0'
20 for i in one two three; do echo $i; done
21 1 for i in one two three; do echo $i; done
22 2 /bin/sh -c 'echo this is $0'
25 5 echo line for history
27 for i in one two three; do echo $i; done
28 /bin/sh -c 'echo this is $0'
32 displaying $HISTFILE after history -a
34 HISTFILE=/tmp/newhistory
35 1 for i in one two three; do echo $i; done
36 2 /bin/sh -c 'echo this is $0'
39 5 echo line for history
40 6 HISTFILE=/tmp/newhistory
41 7 echo displaying \$HISTFILE after history -a
43 for i in one two three; do echo $i; done
44 /bin/sh -c 'echo this is $0'
48 HISTFILE=/tmp/newhistory
49 echo displaying \$HISTFILE after history -a
51 1 for i in one two three; do echo $i; done
52 2 /bin/sh -c 'echo this is $0'
55 5 echo line for history
56 6 HISTFILE=/tmp/newhistory
57 7 echo displaying \$HISTFILE after history -a
59 9 echo line 2 for history
60 echo line 2 for history
61 echo line 2 for history
62 1 for i in one two three; do echo $i; done
63 2 /bin/sh -c 'echo this is $0'
66 5 echo line for history
67 6 HISTFILE=/tmp/newhistory
68 7 echo displaying \$HISTFILE after history -a
70 9 echo line 2 for history
71 10 # this should show up as one history entry
72 11 for x in one two three; do :; done
74 echo line 2 for history
77 5 echo line for history
78 6 HISTFILE=/tmp/newhistory
79 7 echo displaying \$HISTFILE after history -a
81 9 echo line 2 for history
82 10 # this should show up as one history entry
83 11 for x in one two three; do :; done
84 12 # just a basic test. a full test suite for history expansion should be
87 15 echo line 2 for history
91 5 echo line for history
92 6 HISTFILE=/tmp/newhistory
93 7 echo displaying \$HISTFILE after history -a
95 ./history.tests: fc: history specification out of range
97 15 echo line 2 for history
103 ./history.tests: fc: no command found