commit bash-20181123 snapshot

This commit is contained in:
Chet Ramey
2018-12-03 10:29:56 -05:00
parent d61300ec87
commit 0712a90cd8
42 changed files with 3440 additions and 4637 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
+6 -2
View File
@@ -210,14 +210,18 @@ argv[1] = <correct>
argv[2] = <a>
argv[1] = <correct>
argv[2] = <a>
./exp7.sub: line 5: INFORM: dequote_string: string with bare CTLESC
argv[1] = <^A>
argv[1] = <3>
argv[2] = <^C>
argv[3] = <^C>
argv[4] = <^C>
./exp7.sub: line 10: INFORM: dequote_string: string with bare CTLESC
argv[1] = <^A>
argv[1] = <XY>
argv[2] = <YX>
argv[1] = <XY^AYX>
argv[1] = <XY>
argv[2] = <Y>
argv[1] = <XY^AY>
argv[1] = <x^Ay^?z>
argv[1] = <x^Ay^?z>
declare -- var="xyz"
+12
View File
@@ -9,3 +9,15 @@ recho $# "$1" "$2" "$3"
x=$c
recho "$x"
unset c c2 x
c=$'Y\1Y';
v=X${c}X;
recho X${c}X
recho "$v"
v=X$c
recho X$c
recho "$v"
+13 -13
View File
@@ -3,7 +3,7 @@ argv[1] = <foo>
argv[1] = </usr/homes/chet>
argv[1] = </usr/homes/chet>
argv[1] = </usr/homes/chet>
./new-exp.tests: line 24: HOME: }: syntax error: operand expected (error token is "}")
./new-exp.tests: line 28: HOME: }: syntax error: operand expected (error token is "}")
unset
argv[1] = </usr/homes/chet>
argv[1] = </usr/homes/chet>
@@ -66,8 +66,8 @@ argv[4] = <d>
argv[1] = <a>
argv[2] = <b c>
argv[3] = <d>
./new-exp.tests: line 180: ABX: unbound variable
./new-exp.tests: line 184: $6: cannot assign in this way
./new-exp.tests: line 184: ABX: unbound variable
./new-exp.tests: line 188: $6: cannot assign in this way
argv[1] = <xxcde>
argv[1] = <axxde>
argv[1] = <abxyz>
@@ -176,7 +176,7 @@ a
./new-exp2.sub: line 49: 1111111111111111111111: command not found
argv[1] = <6>
./new-exp.tests: line 285: ${#:}: bad substitution
./new-exp.tests: line 289: ${#:}: bad substitution
argv[1] = <'>
argv[1] = <">
argv[1] = <"hello">
@@ -411,13 +411,13 @@ argv[6] = <w>
argv[7] = <x>
argv[8] = <y>
argv[9] = <z>
./new-exp.tests: line 503: $9: unbound variable
./new-exp.tests: line 504: 9: unbound variable
./new-exp.tests: line 505: UNSET: unbound variable
./new-exp.tests: line 506: UNSET: unbound variable
./new-exp.tests: line 507: UNSET: unbound variable
./new-exp.tests: line 508: UNSET: unbound variable
./new-exp.tests: line 507: $9: unbound variable
./new-exp.tests: line 508: 9: unbound variable
./new-exp.tests: line 509: UNSET: unbound variable
./new-exp.tests: line 510: UNSET: unbound variable
./new-exp.tests: line 511: UNSET: unbound variable
./new-exp.tests: line 512: UNSET: unbound variable
./new-exp.tests: line 513: UNSET: unbound variable
argv[1] = <5>
argv[1] = <#>
argv[1] = <#>
@@ -464,7 +464,7 @@ Case05---3---A:B:C---
Case06---1---A B C::---
Case07---3---A:B:C---
Case08---3---A:B:C---
./new-exp.tests: line 529: ${$(($#-1))}: bad substitution
./new-exp.tests: line 533: ${$(($#-1))}: bad substitution
argv[1] = <a>
argv[2] = <b>
argv[3] = <c>
@@ -481,7 +481,7 @@ argv[1] = <a>
argv[1] = <a>
argv[2] = <b>
argv[1] = <>
./new-exp.tests: line 548: $(($# - 2)): substring expression < 0
./new-exp.tests: line 552: $(($# - 2)): substring expression < 0
argv[1] = <bin>
argv[2] = <bin>
argv[3] = <ucb>
@@ -669,4 +669,4 @@ prependå
ḅć
argv[1] = </>
argv[1] = </>
./new-exp.tests: line 611: ABXD: parameter unset
./new-exp.tests: line 615: ABXD: parameter unset
+4
View File
@@ -1,3 +1,7 @@
if (( $UID == 0 )); then
echo "new-exp.tests: the test suite should not be run as root" >&2
fi
# must do this because posix mode causes process substitution to be disabled
# and flagged as a syntax error, which causes the shell to exit
set +o posix
+5
View File
@@ -1,3 +1,8 @@
if (( $UID == 0 )); then
echo "${THIS_SH}: the test suite should not be run as root" >&2
echo
fi
echo Testing ${THIS_SH}
echo version: $BASH_VERSION
+5
View File
@@ -1,3 +1,8 @@
if (( $UID == 0 )); then
echo "${THIS_SH}: the test suite should not be run as root" >&2
echo
fi
echo Testing ${THIS_SH}
echo version: $BASH_VERSION