From 1d5cace9db9aef76f26b2d7ba54bbb76443b00b2 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 5 May 2024 20:33:23 +0200 Subject: Adding upstream version 5.0. Signed-off-by: Daniel Baumann --- tests/histexp6.sub | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 tests/histexp6.sub (limited to 'tests/histexp6.sub') diff --git a/tests/histexp6.sub b/tests/histexp6.sub new file mode 100644 index 0000000..00610b0 --- /dev/null +++ b/tests/histexp6.sub @@ -0,0 +1,24 @@ +unset HISTIGNORE +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 -- cgit v1.2.3