summaryrefslogtreecommitdiffstats
path: root/tests/histexp4.sub
blob: ddc3bb3c93af437bf4dd640cdfab7d0f31a7d571 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
HISTFILE=$TMPDIR/bashhist-$$

set -o history
set -o histexpand

echo a
cat < <(echo !!)

echo b
echo !! `echo !!`

echo c
echo "$(echo "!" )"

echo d
echo "$(echo '!' )"

echo e
echo '!' "!"
echo "'!'"

set +o history
rm -f $HISTFILE