Imported from ../bash-2.02.tar.gz.
This commit is contained in:
parent
e8ce775db8
commit
cce855bc5b
323 changed files with 33916 additions and 12321 deletions
129
tests/histexp.right
Normal file
129
tests/histexp.right
Normal file
|
|
@ -0,0 +1,129 @@
|
|||
echo $BASH_VERSION
|
||||
./histexp.tests: history: !!:z: history expansion failed
|
||||
1 for i in one two three; do echo $i; done
|
||||
2 /bin/sh -c 'echo this is $0'
|
||||
3 ls
|
||||
4 echo $BASH_VERSION
|
||||
1 for i in one two three; do echo $i; done
|
||||
2 /bin/sh -c 'echo this is $0'
|
||||
3 ls
|
||||
4 echo $BASH_VERSION
|
||||
5 HISTFILE=/tmp/newhistory
|
||||
6 echo line 2 for history
|
||||
echo line 2 for history
|
||||
echo line 2 for history
|
||||
set -H
|
||||
echo line 2 for history
|
||||
line 2 for history
|
||||
1 for i in one two three; do echo $i; done
|
||||
2 /bin/sh -c 'echo this is $0'
|
||||
3 ls
|
||||
4 echo $BASH_VERSION
|
||||
5 HISTFILE=/tmp/newhistory
|
||||
6 echo line 2 for history
|
||||
7 set -H
|
||||
8 echo line 2 for history
|
||||
a b c d e
|
||||
echo a b c d e
|
||||
a b c d e
|
||||
echo line 2 for history
|
||||
line 2 for history
|
||||
echo line 8 for history
|
||||
line 8 for history
|
||||
/bin/sh -c 'echo this is $0'
|
||||
this is /bin/sh
|
||||
echo sh
|
||||
sh
|
||||
echo /bin
|
||||
/bin
|
||||
echo e
|
||||
e
|
||||
a b c d e
|
||||
echo b c d e
|
||||
b c d e
|
||||
echo b c d
|
||||
b c d
|
||||
echo d e
|
||||
d e
|
||||
echo d e
|
||||
d e
|
||||
echo b c d
|
||||
b c d
|
||||
file.c
|
||||
echo file
|
||||
file
|
||||
echo .c
|
||||
.c
|
||||
echo 'file'
|
||||
file
|
||||
bax.c
|
||||
echo $file
|
||||
bax
|
||||
echo .c
|
||||
.c
|
||||
echo '$file'
|
||||
$file
|
||||
a b c d e
|
||||
echo 'a' 'b' 'c' 'd' 'e'
|
||||
a b c d e
|
||||
echo 'a b c d e'
|
||||
a b c d e
|
||||
foo.c foo.o foo.html foo.h
|
||||
echo bar.c foo.o foo.html foo.h
|
||||
bar.c foo.o foo.html foo.h
|
||||
echo bar.c bar.o bar.html bar.h
|
||||
bar.c bar.o bar.html bar.h
|
||||
echo xbar.c xbar.o xbar.html xbar.h
|
||||
xbar.c xbar.o xbar.html xbar.h
|
||||
echo xbar.c xbar.o xbar.html xbar.h
|
||||
xbar.c xbar.o xbar.html xbar.h
|
||||
echo xwhix.c xwhix.o xwhix.html xwhix.h
|
||||
xwhix.c xwhix.o xwhix.html xwhix.h
|
||||
echo xwhix.c xwhix.o xwhix.html xwhix.h
|
||||
echo 'xwhix'
|
||||
xwhix
|
||||
echo 'xwhix.h'
|
||||
xwhix.h
|
||||
echo 'xwhix.h'
|
||||
xwhix.h
|
||||
echo 'xwhix.h'
|
||||
xwhix.h
|
||||
8 echo line 2 for history
|
||||
9 echo a b c d e
|
||||
10 echo line 2 for history
|
||||
11 echo line 8 for history
|
||||
12 /bin/sh -c 'echo this is $0'
|
||||
13 echo sh
|
||||
14 echo /bin
|
||||
15 echo e
|
||||
16 echo a b c d e
|
||||
17 echo b c d e
|
||||
18 echo b c d
|
||||
19 echo d e
|
||||
20 echo b c d
|
||||
21 echo file.c
|
||||
22 echo file
|
||||
23 echo .c
|
||||
24 echo 'file'
|
||||
25 echo $file.c
|
||||
26 echo $file
|
||||
27 echo .c
|
||||
28 echo '$file'
|
||||
29 echo a b c d e
|
||||
30 echo 'a' 'b' 'c' 'd' 'e'
|
||||
31 echo 'a b c d e'
|
||||
32 echo foo.c foo.o foo.html foo.h
|
||||
33 echo bar.c foo.o foo.html foo.h
|
||||
34 echo bar.c bar.o bar.html bar.h
|
||||
35 echo xbar.c xbar.o xbar.html xbar.h
|
||||
36 echo xwhix.c xwhix.o xwhix.html xwhix.h
|
||||
37 echo xwhix.c xwhix.o xwhix.html xwhix.h
|
||||
38 echo 'xwhix'
|
||||
39 echo 'xwhix.h'
|
||||
!!
|
||||
!!
|
||||
echo '!!' \!\!
|
||||
!! !!
|
||||
ok 1
|
||||
ok 2
|
||||
ok 3
|
||||
Loading…
Add table
Add a link
Reference in a new issue