mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-07-02 01:40:49 +02:00
commit bash-20160923 snapshot
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
|
||||
+4
-4
@@ -20,7 +20,7 @@ jkl mno
|
||||
fff is a function
|
||||
fff ()
|
||||
{
|
||||
ed /tmp/foo > /dev/null <<ENDOFINPUT
|
||||
ed /tmp/foo <<ENDOFINPUT > /dev/null
|
||||
/^name/d
|
||||
w
|
||||
q
|
||||
@@ -31,7 +31,7 @@ ENDOFINPUT
|
||||
fff is a function
|
||||
fff ()
|
||||
{
|
||||
ed /tmp/foo > /dev/null <<ENDOFINPUT
|
||||
ed /tmp/foo <<ENDOFINPUT > /dev/null
|
||||
/^name/d
|
||||
w
|
||||
q
|
||||
@@ -43,11 +43,11 @@ foo is a function
|
||||
foo ()
|
||||
{
|
||||
echo;
|
||||
cat <<END
|
||||
cat <<END
|
||||
bar
|
||||
END
|
||||
|
||||
cat <<EOF
|
||||
cat <<EOF
|
||||
qux
|
||||
EOF
|
||||
|
||||
|
||||
@@ -148,6 +148,7 @@ b
|
||||
|
||||
xx
|
||||
xx
|
||||
< >< >
|
||||
one
|
||||
one\ctwo
|
||||
4\.2
|
||||
|
||||
+3
-1
@@ -308,6 +308,9 @@ shopt -s nullglob extglob
|
||||
echo "x$(printf "%b" @(hugo))x"
|
||||
printf -v var "%b" @(hugo); echo "x${var}x"
|
||||
|
||||
# make sure that missing arguments are always handled like the empty string
|
||||
printf "<%3s><%3b>\n"
|
||||
|
||||
# tests variable assignment with -v
|
||||
${THIS_SH} ./printf1.sub
|
||||
|
||||
@@ -316,4 +319,3 @@ ${THIS_SH} ./printf2.sub
|
||||
${THIS_SH} ./printf3.sub
|
||||
|
||||
${THIS_SH} ./printf4.sub
|
||||
|
||||
|
||||
+7
-7
@@ -65,11 +65,11 @@ foo is a function
|
||||
foo ()
|
||||
{
|
||||
echo;
|
||||
cat <<END
|
||||
cat <<END
|
||||
bar
|
||||
END
|
||||
|
||||
cat <<EOF
|
||||
cat <<EOF
|
||||
qux
|
||||
EOF
|
||||
|
||||
@@ -86,7 +86,7 @@ foo ()
|
||||
rm -f a b c;
|
||||
for f in a b c;
|
||||
do
|
||||
cat >> ${f} <<-EOF
|
||||
cat <<-EOF >> ${f}
|
||||
file
|
||||
EOF
|
||||
|
||||
@@ -99,7 +99,7 @@ c:file
|
||||
bb is a function
|
||||
bb ()
|
||||
{
|
||||
( cat <<EOF
|
||||
( cat <<EOF
|
||||
foo
|
||||
bar
|
||||
EOF
|
||||
@@ -110,13 +110,13 @@ mkcoprocs is a function
|
||||
mkcoprocs ()
|
||||
{
|
||||
coproc a {
|
||||
cat <<EOF1
|
||||
cat <<EOF1
|
||||
producer 1
|
||||
EOF1
|
||||
|
||||
}
|
||||
coproc b {
|
||||
cat <<EOF2
|
||||
cat <<EOF2
|
||||
producer 2
|
||||
EOF2
|
||||
|
||||
@@ -126,7 +126,7 @@ EOF2
|
||||
mkcoprocs is a function
|
||||
mkcoprocs ()
|
||||
{
|
||||
coproc COPROC ( b cat <<EOF
|
||||
coproc COPROC ( b cat <<EOF
|
||||
heredoc
|
||||
body
|
||||
EOF
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@ line 3
|
||||
bar is a function
|
||||
bar ()
|
||||
{
|
||||
exec {v}<<EOF
|
||||
exec {v}<<EOF
|
||||
line 1
|
||||
line 2
|
||||
line 3
|
||||
|
||||
Reference in New Issue
Block a user