]> git.ipfire.org Git - thirdparty/bash.git/blob - tests/histexp3.sub
bash-4.4 rc1 release
[thirdparty/bash.git] / tests / histexp3.sub
1 HISTFILE=${TMPDIR}/bashhist-$$
2
3 set -o history
4 set -o histexpand
5
6 echo a
7 echo $(echo !!)
8
9 echo a
10 echo !! $(echo !!)
11
12 echo b
13 echo '!!' '$(echo !!)'
14
15 echo c
16 echo "!!" "$(echo !!)"
17
18 echo d
19 echo "!!" $(echo "!!")
20
21 echo e
22 echo '!!' $(echo '!!')
23
24 echo f
25 echo '!!'
26 echo f
27 eval echo '!!'
28
29 echo g
30 echo "!!"
31 echo g
32 eval echo "!!"
33
34 set +o history
35 rm -f $HISTFILE # just in case