3 trap 'rm /tmp/newhistory' 0
6 histchars='!^#' # make sure history comment char is set correctly
8 unset HISTFILESIZE HISTTIMEFORMAT
13 HISTCONTROL=ignoreboth
14 HISTIGNORE='&:#*:history*:fc*'
15 # we will end up exercising the history stifling code as a result
23 # this should result in a failed history expansion error
28 HISTFILE=/tmp/newhistory
33 history -s "echo line 2 for history"
51 # we're selecting /bin/sh -c ...; we want `sh'
53 # we're selecting /bin/sh -c ...; we want `/bin'
55 # we're selecting `echo a b c d e'; we want `e'
80 echo foo.c foo.o foo.html foo.h
86 # make sure we can use any delimiter in the substitution, not just `/'
100 # make sure single quotes inhibit history expansion
103 # make sure backslashes can quote the history expansion character
106 # but other expansions on the line should still be processed
112 # make sure that the special bash cases are not history expanded
122 # Bash-2.01[.1] fails this test -- it attempts history expansion after the
123 # history_comment_char