diff options
Diffstat (limited to 'tests/history5.sub')
-rw-r--r-- | tests/history5.sub | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/tests/history5.sub b/tests/history5.sub index b7cbbe1e..c44ace8a 100644 --- a/tests/history5.sub +++ b/tests/history5.sub @@ -14,7 +14,7 @@ trap 'rm -f $HISTFILE' 0 1 2 3 6 15 -HISTFILE=$TMPDIR/foohist-$$ +HISTFILE=$TMPDIR/fchist-$$ unset HISTIGNORE HISTCONTROL set -o history @@ -32,3 +32,24 @@ fc -l -0 echo d fc -s 0 + +HISTSIZE=4 +history -c + +echo a +echo b +echo c +echo d +echo e +echo f +fc -l + +echo out of range 1 +fc -l 502 498 +echo out of range 2 +fc -l 498 502 +echo out of range 3 +fc -l 1 99 +# other out-of-range behavior for future work +echo out of range 4 +fc -l -20 -40 |