summaryrefslogtreecommitdiffstats
path: root/tests/history3.sub
blob: 8722666cee4f4e81f354f94346ee4fe5c2bb9632 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
: ${TMPDIR:=/tmp}

set -o history
HISTFILE=$TMPDIR/history-$$

history -c

echo a
echo b
echo c
echo d
echo e

history ; echo 

history -d 2-4

history

echo f
echo g
echo h
echo i
history -d 6--1
history ; echo

history -d 16-40
history -d 1-200
history -d -20-50
history -d 1--50
history -d 5-0xaf

history ; echo

unset HISTFILE
exit 0