1
trap 'rm /tmp/newhistory' 0
5
# cannot use -r and -w at the same time
6
history -r -w /dev/null
13
# all of these should result in an empty history list
20
HISTCONTROL=ignoreboth
21
HISTIGNORE='&:history*:fc*'
35
history -s "echo line for history"
42
HISTFILE=/tmp/newhistory
44
echo displaying \$HISTFILE after history -a
51
history -s "echo line 2 for history"
56
# this should show up as one history entry
57
for x in one two three
63
# just a basic test. a full test suite for history expansion should be
75
fc -l one=two three=four 502
80
shopt -s expand_aliases
89
# this had better fail with `no command found'
95
# these two blocks had better both result in the same output
111
${THIS_SH} ./history1.sub
114
${THIS_SH} ./history2.sub