1 trap 'rm /tmp/newhistory' 0
5 # cannot use -r and -w at the same time
6 history -r -w /dev/null
11 # all of these should result in an empty history list
18 HISTCONTROL=ignoreboth
19 HISTIGNORE='&:history*:fc*'
33 history -s "echo line for history"
40 HISTFILE=/tmp/newhistory
42 echo displaying \$HISTFILE after history -a
49 history -s "echo line 2 for history"
54 # this should show up as one history entry
55 for x in one two three
61 # just a basic test. a full test suite for history expansion should be
74 fc -l one=two three=four 502
79 shopt -s expand_aliases
88 # this had better fail with `no command found'