~elementary-os/elementaryos/os-patch-bash-bionic

« back to all changes in this revision

Viewing changes to tests/histexp3.sub

  • Committer: RabbitBot
  • Date: 2018-02-05 12:45:41 UTC
  • Revision ID: rabbitbot@elementary.io-20180205124541-5wicxd8ktiog8uh1
Initial import, version 4.4-5ubuntu1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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