diff options
author | Chet Ramey <chet.ramey@case.edu> | 2018-07-09 10:35:17 -0400 |
---|---|---|
committer | Chet Ramey <chet.ramey@case.edu> | 2018-07-09 10:35:17 -0400 |
commit | a078e04c3d9163541cce590c3fd00f243fe77613 (patch) | |
tree | e8338519d5830ec8a58cd21fd1751a1c222a3b0f /tests/histexp6.sub | |
parent | c181950a89c0f0ca4a3ae2480b783da2f7de9565 (diff) | |
download | bash-a078e04c3d9163541cce590c3fd00f243fe77613.tar.gz |
commit bash-20180628 snapshot
Diffstat (limited to 'tests/histexp6.sub')
-rw-r--r-- | tests/histexp6.sub | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/histexp6.sub b/tests/histexp6.sub new file mode 100644 index 00000000..b95b460a --- /dev/null +++ b/tests/histexp6.sub @@ -0,0 +1,23 @@ +HISTFILE=$TMPDIR/bashhist-$$ + +set -o history +set -o histexpand + +echo one + +for f in a b c; do + echo !! +done + +history +history -c + +echo two +for f in a b c; do + echo !-1 +done + +history + +set +o history +rm -f $HISTFILE |