Imported from ../bash-2.01.1.tar.gz.
[platform/upstream/bash.git] / tests / histexp.right
1 echo $BASH_VERSION
2 ./histexp.tests: 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 $BASH_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 $BASH_VERSION
11     5  HISTFILE=/tmp/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 $BASH_VERSION
22     5  HISTFILE=/tmp/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
36 sh
37 echo /bin
38 /bin
39 echo e
40 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
56 .c
57 echo 'file'
58 file
59 bax.c
60 echo $file
61 bax
62 echo .c
63 .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     8  echo line 2 for history
92     9  echo a b c d e
93    10  echo line 2 for history
94    11  echo line 8 for history
95    12  /bin/sh -c 'echo this is $0'
96    13  echo sh
97    14  echo /bin
98    15  echo e
99    16  echo a b c d e
100    17  echo b c d e
101    18  echo b c d
102    19  echo d e
103    20  echo b c d
104    21  echo file.c
105    22  echo file
106    23  echo .c
107    24  echo 'file'
108    25  echo $file.c
109    26  echo $file
110    27  echo .c
111    28  echo '$file'
112    29  echo a b c d e
113    30  echo 'a' 'b' 'c' 'd' 'e'
114    31  echo 'a b c d e'
115    32  echo foo.c foo.o foo.html foo.h
116    33  echo bar.c foo.o foo.html foo.h
117    34  echo bar.c bar.o bar.html bar.h
118    35  echo xbar.c xbar.o xbar.html xbar.h
119    36  echo xwhix.c xwhix.o xwhix.html xwhix.h
120    37  echo xwhix.c xwhix.o xwhix.html xwhix.h
121    38  echo 'xwhix'
122    39  echo 'xwhix.h'
123 !!
124 !!
125 echo '!!' \!\!
126 !! !!
127 ok 1
128 ok 2
129 ok 3