commit bash-20180504 snapshot

This commit is contained in:
Chet Ramey
2018-05-08 14:27:28 -04:00
parent 2afeb2af6a
commit 96b7e26874
13 changed files with 190 additions and 45 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
+11 -11
View File
@@ -3,7 +3,7 @@ foo
test2
test3
test4
8
8
test5
test6
test7
@@ -15,15 +15,15 @@ bye
l8r
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
intern
1
0
0
0
0
1
0
0
0
0
extern
1
0
0
0
0
1
0
0
0
0
123
+11 -7
View File
@@ -1,4 +1,5 @@
# process substitution constructs that have caused problems in the past
. ./test-glue-functions
eval cat <(echo test1)
eval "echo foo;cat" <(echo test2)
@@ -13,7 +14,7 @@ unset f
FN=$TMPDIR/bashtest-procsub-$$
cat >"$FN" <<EOF
echo "test 12" | wc -c
echo "test 12" | wc -c | _cut_leading_spaces
cat "\$1"
EOF
@@ -44,10 +45,8 @@ f2 <(echo l8r)
unset -f f1 f2
moo() { ls -l "$1" >/dev/null; ls -l "$1" >/dev/null; }; moo >(true)
moo() { ls -al "$1" >/dev/null; (true); ls -al "$1" >/dev/null; }; moo >(true)
unset -f moo
# set up conditions for test
ulimit -n 256
bug()
{
@@ -76,7 +75,7 @@ count_lines()
}
echo intern
count_lines <(date)
count_lines <(date) | _cut_leading_spaces
unset -f count_lines
echo extern
@@ -89,7 +88,12 @@ true | wc -l < \$1
wc -l < \$1
EOF
${THIS_SH} -c "source $FN <(date)"
${THIS_SH} -c "source $FN <(date)" | _cut_leading_spaces
rm -f $FN
moo() { ls -l "$1" >/dev/null; ls -l "$1" >/dev/null; }; moo >(true)
moo() { ls -al "$1" >/dev/null; (true); ls -al "$1" >/dev/null; }; moo >(true)
unset -f moo
${THIS_SH} ./procsub1.sub
+5 -1
View File
@@ -6,4 +6,8 @@ _intl_normalize_spaces()
sed -e 's/[[:space:]]\{1,\}/ /g' -e 's/[[:space:]]*$//'
}
# avoid whitespace differences in wc implementations
_cut_leading_spaces()
{
sed -e 's/^[[:space:]]*//g'
}
+1
View File
@@ -135,6 +135,7 @@ declare -a bar=([0]="zero" [1]="one")
declare -A foo=([one]="one" [zero]="zero" )
declare -a bar=([0]="zero" [1]="one")
./varenv11.sub: line 29: a: readonly variable
foo=abc
a=z
a=b
a=z