]> git.ipfire.org Git - thirdparty/bash.git/blame - tests/histexp.right
Imported from ../bash-2.02.tar.gz.
[thirdparty/bash.git] / tests / histexp.right
CommitLineData
d166f048 1echo $BASH_VERSION
cce855bc 2./histexp.tests: history: !!:z: history expansion failed
d166f048
JA
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
13echo line 2 for history
14echo line 2 for history
15set -H
16echo line 2 for history
17line 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
26a b c d e
27echo a b c d e
28a b c d e
29echo line 2 for history
30line 2 for history
31echo line 8 for history
32line 8 for history
33/bin/sh -c 'echo this is $0'
34this is /bin/sh
35echo sh
36sh
37echo /bin
38/bin
39echo e
40e
41a b c d e
42echo b c d e
43b c d e
44echo b c d
45b c d
46echo d e
47d e
48echo d e
49d e
50echo b c d
51b c d
52file.c
53echo file
54file
55echo .c
56.c
57echo 'file'
58file
59bax.c
60echo $file
61bax
62echo .c
63.c
64echo '$file'
65$file
66a b c d e
67echo 'a' 'b' 'c' 'd' 'e'
68a b c d e
69echo 'a b c d e'
70a b c d e
71foo.c foo.o foo.html foo.h
72echo bar.c foo.o foo.html foo.h
73bar.c foo.o foo.html foo.h
74echo bar.c bar.o bar.html bar.h
75bar.c bar.o bar.html bar.h
76echo xbar.c xbar.o xbar.html xbar.h
77xbar.c xbar.o xbar.html xbar.h
78echo xbar.c xbar.o xbar.html xbar.h
79xbar.c xbar.o xbar.html xbar.h
80echo xwhix.c xwhix.o xwhix.html xwhix.h
81xwhix.c xwhix.o xwhix.html xwhix.h
82echo xwhix.c xwhix.o xwhix.html xwhix.h
83echo 'xwhix'
84xwhix
85echo 'xwhix.h'
86xwhix.h
87echo 'xwhix.h'
88xwhix.h
89echo 'xwhix.h'
90xwhix.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!!
125echo '!!' \!\!
126!! !!
127ok 1
128ok 2
cce855bc 129ok 3