commit bash-20200825 snapshot

This commit is contained in:
Chet Ramey
2020-09-01 14:43:43 -04:00
parent e4d38c2d74
commit c261f9b80c
13 changed files with 153 additions and 32 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
BUILD_DIR=/usr/local/build/chet/bash/bash-current
BUILD_DIR=/usr/local/build/bash/bash-current
THIS_SH=$BUILD_DIR/bash
PATH=$PATH:$BUILD_DIR
+23 -2
View File
@@ -241,5 +241,26 @@ c
d
echo d
d
11 # other out-of-range behavior for future work
12 fc -l 498 502
a
b
c
d
e
f
4 echo d
5 echo e
6 echo f
out of range 1
6 echo f
7 fc -l
8 echo out of range 1
out of range 2
8 echo out of range 1
9 fc -l 502 498
10 echo out of range 2
out of range 3
10 echo out of range 2
11 fc -l 498 502
12 echo out of range 3
out of range 4
13 fc -l 1 99
+20 -3
View File
@@ -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
@@ -33,6 +33,23 @@ fc -l -0
echo d
fc -s 0
# other out-of-range behavior for future work
fc -l 498 502
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