Imported from ../bash-2.01.1.tar.gz.
[platform/upstream/bash.git] / tests / histexpand.right
1 echo $BASH_VERSION
2     1  for i in one two three; do echo $i; done
3     2  /bin/sh -c 'echo this is $0'
4     3  ls
5     4  echo $BASH_VERSION
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     5  HISTFILE=/tmp/newhistory
11     6  echo line 2 for history
12 echo line 2 for history
13 echo line 2 for history
14 set -H
15 echo line 2 for history
16 line 2 for history
17     1  for i in one two three; do echo $i; done
18     2  /bin/sh -c 'echo this is $0'
19     3  ls
20     4  echo $BASH_VERSION
21     5  HISTFILE=/tmp/newhistory
22     6  echo line 2 for history
23     7  set -H
24     8  echo line 2 for history
25 a b c d e
26 echo a b c d e
27 a b c d e
28 echo line 2 for history
29 line 2 for history
30 echo line 8 for history
31 line 8 for history
32 /bin/sh -c 'echo this is $0'
33 this is /bin/sh
34 echo sh
35 sh
36 echo /bin
37 /bin
38 echo e
39 e
40 a b c d e
41 echo b c d e
42 b c d e
43 echo b c d
44 b c d
45 echo d e
46 d e
47 echo d e
48 d e
49 echo b c d
50 b c d
51 file.c
52 echo file
53 file
54 echo .c
55 .c
56 echo 'file'
57 file
58 bax.c
59 echo $file
60 bax
61 echo .c
62 .c
63 echo '$file'
64 $file
65 a b c d e
66 echo 'a' 'b' 'c' 'd' 'e'
67 a b c d e
68 echo 'a b c d e'
69 a b c d e
70 foo.c foo.o foo.html foo.h
71 echo bar.c foo.o foo.html foo.h
72 bar.c foo.o foo.html foo.h
73 echo bar.c bar.o bar.html bar.h
74 bar.c bar.o bar.html bar.h
75 echo xbar.c xbar.o xbar.html xbar.h
76 xbar.c xbar.o xbar.html xbar.h
77 echo xbar.c xbar.o xbar.html xbar.h
78 xbar.c xbar.o xbar.html xbar.h
79 echo xwhix.c xwhix.o xwhix.html xwhix.h
80 xwhix.c xwhix.o xwhix.html xwhix.h
81 echo xwhix.c xwhix.o xwhix.html xwhix.h
82 echo 'xwhix'
83 xwhix
84 echo 'xwhix.h'
85 xwhix.h
86 echo 'xwhix.h'
87 xwhix.h
88 echo 'xwhix.h'
89 xwhix.h
90     8  echo line 2 for history
91     9  echo a b c d e
92    10  echo line 2 for history
93    11  echo line 8 for history
94    12  /bin/sh -c 'echo this is $0'
95    13  echo sh
96    14  echo /bin
97    15  echo e
98    16  echo a b c d e
99    17  echo b c d e
100    18  echo b c d
101    19  echo d e
102    20  echo b c d
103    21  echo file.c
104    22  echo file
105    23  echo .c
106    24  echo 'file'
107    25  echo $file.c
108    26  echo $file
109    27  echo .c
110    28  echo '$file'
111    29  echo a b c d e
112    30  echo 'a' 'b' 'c' 'd' 'e'
113    31  echo 'a b c d e'
114    32  echo foo.c foo.o foo.html foo.h
115    33  echo bar.c foo.o foo.html foo.h
116    34  echo bar.c bar.o bar.html bar.h
117    35  echo xbar.c xbar.o xbar.html xbar.h
118    36  echo xwhix.c xwhix.o xwhix.html xwhix.h
119    37  echo xwhix.c xwhix.o xwhix.html xwhix.h
120    38  echo 'xwhix'
121    39  echo 'xwhix.h'
122 !!
123 !!
124 echo '!!' \!\!
125 !! !!
126 ok 1
127 ok 2