1 | ./history.tests: line 4: history: -x: invalid option
|
---|
2 | history: usage: history [-c] [-d offset] [n] or history -awrn [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] [-nlr] [first] [last] or fc -s [pat=rep] [cmd]
|
---|
6 | 1 for i in one two three; do echo $i; done
|
---|
7 | 2 /bin/sh -c 'echo this is $0'
|
---|
8 | 3 ls
|
---|
9 | 4 echo $BASH_VERSION
|
---|
10 | 1 for i in one two three; do echo $i; done
|
---|
11 | 2 /bin/sh -c 'echo this is $0'
|
---|
12 | 3 ls
|
---|
13 | 4 echo $BASH_VERSION
|
---|
14 | for i in one two three; do echo $i; done
|
---|
15 | /bin/sh -c 'echo this is $0'
|
---|
16 | ls
|
---|
17 | echo $BASH_VERSION
|
---|
18 | 4 echo $BASH_VERSION
|
---|
19 | 3 ls
|
---|
20 | 2 /bin/sh -c 'echo this is $0'
|
---|
21 | 1 for i in one two three; do echo $i; done
|
---|
22 | echo $BASH_VERSION
|
---|
23 | ls
|
---|
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'
|
---|
28 | 3 ls
|
---|
29 | 4 echo $BASH_VERSION
|
---|
30 | 5 echo line for history
|
---|
31 | echo line for history
|
---|
32 | for i in one two three; do echo $i; done
|
---|
33 | /bin/sh -c 'echo this is $0'
|
---|
34 | ls
|
---|
35 | echo $BASH_VERSION
|
---|
36 | echo line for history
|
---|
37 | displaying $HISTFILE after history -a
|
---|
38 | echo line for history
|
---|
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'
|
---|
42 | 3 ls
|
---|
43 | 4 echo $BASH_VERSION
|
---|
44 | 5 echo line for history
|
---|
45 | 6 HISTFILE=/tmp/newhistory
|
---|
46 | 7 echo displaying \$HISTFILE after history -a
|
---|
47 | 8 cat $HISTFILE
|
---|
48 | for i in one two three; do echo $i; done
|
---|
49 | /bin/sh -c 'echo this is $0'
|
---|
50 | ls
|
---|
51 | echo $BASH_VERSION
|
---|
52 | echo line for history
|
---|
53 | HISTFILE=/tmp/newhistory
|
---|
54 | echo displaying \$HISTFILE after history -a
|
---|
55 | cat $HISTFILE
|
---|
56 | 1 for i in one two three; do echo $i; done
|
---|
57 | 2 /bin/sh -c 'echo this is $0'
|
---|
58 | 3 ls
|
---|
59 | 4 echo $BASH_VERSION
|
---|
60 | 5 echo line for history
|
---|
61 | 6 HISTFILE=/tmp/newhistory
|
---|
62 | 7 echo displaying \$HISTFILE after history -a
|
---|
63 | 8 cat $HISTFILE
|
---|
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'
|
---|
69 | 3 ls
|
---|
70 | 4 echo $BASH_VERSION
|
---|
71 | 5 echo line for history
|
---|
72 | 6 HISTFILE=/tmp/newhistory
|
---|
73 | 7 echo displaying \$HISTFILE after history -a
|
---|
74 | 8 cat $HISTFILE
|
---|
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
|
---|
78 | set -H
|
---|
79 | echo line 2 for history
|
---|
80 | line 2 for history
|
---|
81 | 4 echo $BASH_VERSION
|
---|
82 | 5 echo line for history
|
---|
83 | 6 HISTFILE=/tmp/newhistory
|
---|
84 | 7 echo displaying \$HISTFILE after history -a
|
---|
85 | 8 cat $HISTFILE
|
---|
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
|
---|
90 | 13 # created
|
---|
91 | 14 set -H
|
---|
92 | 15 echo line 2 for history
|
---|
93 | 16 unset HISTSIZE
|
---|
94 | 17 unset HISTFILE
|
---|
95 | 4 echo $BASH_VERSION
|
---|
96 | 5 echo line for history
|
---|
97 | 6 HISTFILE=/tmp/newhistory
|
---|
98 | 7 echo displaying \$HISTFILE after history -a
|
---|
99 | 8 cat $HISTFILE
|
---|
100 | ./history.tests: line 75: fc: history specification out of range
|
---|
101 | 14 set -H
|
---|
102 | 15 echo line 2 for history
|
---|
103 | 16 unset HISTSIZE
|
---|
104 | 17 unset HISTFILE
|
---|
105 | aa ab ac
|
---|
106 | echo xx xb xc
|
---|
107 | xx xb xc
|
---|
108 | echo 44 48 4c
|
---|
109 | 44 48 4c
|
---|
110 | ./history.tests: line 90: fc: no command found
|
---|
111 | 1
|
---|