init version.
[bush.git] / tests / 3.cli / histexp / histexp.right
blob9f3829d9e76efb41faa2ba9329b5c357cc9652ed
1 echo $BUSH_VERSION
2 ./histexp.tests: line 37: history: !!:z: history expansion failed
3     1  for i in one two three; do echo $i; done
4     2  /bin/sh -c 'echo this is $0'
5     3  ls
6     4  echo $BUSH_VERSION
7     1  for i in one two three; do echo $i; done
8     2  /bin/sh -c 'echo this is $0'
9     3  ls
10     4  echo $BUSH_VERSION
11     5  HISTFILE=$TMPDIR/newhistory
12     6  echo line 2 for history
13 echo line 2 for history
14 echo line 2 for history
15 set -H
16 echo line 2 for history
17 line 2 for history
18     1  for i in one two three; do echo $i; done
19     2  /bin/sh -c 'echo this is $0'
20     3  ls
21     4  echo $BUSH_VERSION
22     5  HISTFILE=$TMPDIR/newhistory
23     6  echo line 2 for history
24     7  set -H
25     8  echo line 2 for history
26 a b c d e
27 echo a b c d e
28 a b c d e
29 echo line 2 for history
30 line 2 for history
31 echo line 8 for history
32 line 8 for history
33 /bin/sh -c 'echo this is $0'
34 this is /bin/sh
35 echo sh
37 echo /bin
38 /bin
39 echo e
41 a b c d e
42 echo b c d e
43 b c d e
44 echo b c d
45 b c d
46 echo d e
47 d e
48 echo d e
49 d e
50 echo b c d
51 b c d
52 file.c
53 echo file
54 file
55 echo .c
57 echo 'file'
58 file
59 bax.c
60 echo $file
61 bax
62 echo .c
64 echo '$file'
65 $file
66 a b c d e
67 echo 'a' 'b' 'c' 'd' 'e'
68 a b c d e
69 echo 'a b c d e'
70 a b c d e
71 foo.c foo.o foo.html foo.h
72 echo bar.c foo.o foo.html foo.h
73 bar.c foo.o foo.html foo.h
74 echo bar.c bar.o bar.html bar.h
75 bar.c bar.o bar.html bar.h
76 echo xbar.c xbar.o xbar.html xbar.h
77 xbar.c xbar.o xbar.html xbar.h
78 echo xbar.c xbar.o xbar.html xbar.h
79 xbar.c xbar.o xbar.html xbar.h
80 echo xwhix.c xwhix.o xwhix.html xwhix.h
81 xwhix.c xwhix.o xwhix.html xwhix.h
82 echo xwhix.c xwhix.o xwhix.html xwhix.h
83 echo 'xwhix'
84 xwhix
85 echo 'xwhix.h'
86 xwhix.h
87 echo 'xwhix.h'
88 xwhix.h
89 echo 'xwhix.h'
90 xwhix.h
91     7  set -H
92     8  echo line 2 for history
93     9  echo a b c d e
94    10  echo line 2 for history
95    11  echo line 8 for history
96    12  /bin/sh -c 'echo this is $0'
97    13  echo sh
98    14  echo /bin
99    15  echo e
100    16  echo a b c d e
101    17  echo b c d e
102    18  echo b c d
103    19  echo d e
104    20  echo b c d
105    21  echo file.c
106    22  echo file
107    23  echo .c
108    24  echo 'file'
109    25  echo $file.c
110    26  echo $file
111    27  echo .c
112    28  echo '$file'
113    29  echo a b c d e
114    30  echo 'a' 'b' 'c' 'd' 'e'
115    31  echo 'a b c d e'
116    32  echo foo.c foo.o foo.html foo.h
117    33  echo bar.c foo.o foo.html foo.h
118    34  echo bar.c bar.o bar.html bar.h
119    35  echo xbar.c xbar.o xbar.html xbar.h
120    36  echo xwhix.c xwhix.o xwhix.html xwhix.h
121    37  echo 'xwhix'
122    38  echo 'xwhix.h'
125 echo '!!' \!\!
126 !! !!
127 ok 1
128 ok 2
129 ok 3
130 echo shopt a
131 shopt a
132 echo a b c d 2> /dev/null
133 a b c d
134 one two three four
135 echo two ; echo four  
136 one two three four
137 echo four ; echo two
154 echo "#!/bin/bush" set -o posix
155 #!/bin/bush set -o posix
159 echo $(echo echo a)
160 echo a
162 echo echo a $(echo echo a)
163 echo a echo a
165 !! $(echo !!)
167 echo "echo c" "$(echo echo c)"
168 echo c echo c
170 echo "echo d" $(echo "echo d")
171 echo d echo d
173 !! !!
179 echo "echo g"
180 echo g
182 eval echo "echo g"
183 echo g
185 echo \!\! `echo echo h`
186 !! echo h
188 echo echo i `echo echo i`
189 echo i echo i
191 echo `echo j` echo j
192 j echo j
194 cat < <(echo echo a)
195 echo a
197 echo echo b `echo echo b`
198 echo b echo b
204 ! !
205 ./histexp4.sub: line 33: !': event not found
206 /tmp/Step1
207 echo /$(echo tmp)/Step1
208 /tmp/Step1
209 echo /<(echo tmp)/Step1 > /dev/null
210 /tmp/Step1
211 echo $(echo /tmp)/Step1
212 /tmp/Step1
213 echo <(echo /tmp)/Step1 > /dev/null
214 /+(one|two|three)/Step1
215 echo /+(one|two|three)/Step1
216 /+(one|two|three)/Step1
217 /*(tmp|dev|usr)/Step1
218 echo /*(tmp|dev|usr)/Step1
219 /*(tmp|dev|usr)/Step1
220 +(/one|/two|/three)/Step1
221 echo +(/one|/two|/three)/Step1
222 +(/one|/two|/three)/Step1
223 *(/tmp|/dev|/usr)/Step1
224 echo *(/tmp|/dev|/usr)/Step1
225 *(/tmp|/dev|/usr)/Step1
227         echo echo one
228 echo one
229 echo one
230 echo one
231     1  set -o histexpand
232     2  echo one
233     3  for f in a b c; do       echo echo one; done
234     4  history
236         echo echo two
237 echo two
238 echo two
239 echo two
240     1  echo two
241     2  for f in a b c; do       echo echo two; done
242     3  history
244 echo !!
245 --between--
246 echo !!