commit bash-20170505 snapshot

This commit is contained in:
Chet Ramey
2017-05-08 10:53:50 -04:00
parent 2a39157723
commit af2a77fbbc
14 changed files with 125 additions and 30 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
BUILD_DIR=/usr/local/build/bash/bash-current
BUILD_DIR=/usr/local/build/chet/bash/bash-current
THIS_SH=$BUILD_DIR/bash
PATH=$PATH:$BUILD_DIR
+4 -4
View File
@@ -64,11 +64,11 @@ fx ()
0
1
2
./arith-for.tests: line 77: syntax error: arithmetic expression required
./arith-for.tests: line 77: syntax error: `(( i=0; "i < 3" ))'
/usr/local/build/chet/bash/bash-current/bash: -c: line 0: syntax error: arithmetic expression required
/usr/local/build/chet/bash/bash-current/bash: -c: line 0: syntax error: `(( i=0; "i < 3" ))'
2
./arith-for.tests: line 83: syntax error: `;' unexpected
./arith-for.tests: line 83: syntax error: `(( i=0; i < 3; i++; 7 ))'
/usr/local/build/chet/bash/bash-current/bash: -c: line 0: syntax error: `;' unexpected
/usr/local/build/chet/bash/bash-current/bash: -c: line 0: syntax error: `(( i=0; i < 3; i++; 7 ))'
2
20
20
+4 -4
View File
@@ -74,16 +74,16 @@ type fx
fx
# errors
for (( i=0; "i < 3" ))
${THIS_SH} -c 'for (( i=0; "i < 3" ))
do
echo $i
done
done'
echo $?
for (( i=0; i < 3; i++; 7 ))
${THIS_SH} -c 'for (( i=0; i < 3; i++; 7 ))
do
echo $i
done
done'
echo $?
# one-liners added in post-bash-2.04
+1 -1
View File
@@ -45,7 +45,7 @@ bar')
echo ${foo:-$(echo a{b,c})} >/dev/null
# parsing problem based on recursively calling bison parser through bash-4.4
for (( INDEX=0; INDEX<$((10-$(expr length $V_NAME))); INDEX++ ))
for (( INDEX=0; INDEX<$((10-$(echo length $V_NAME))); INDEX++ ))
do
:
done