[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
heredocs incorrectly printed in for ((...)) loop
From: |
Mike Frysinger |
Subject: |
heredocs incorrectly printed in for ((...)) loop |
Date: |
Tue, 12 Apr 2011 23:56:19 -0400 |
User-agent: |
KMail/1.13.6 (Linux/2.6.37.3; KDE/4.6.0; x86_64; ; ) |
seems to be just like the bug fixed in bash41-006, but with a diff for loop
style. simple example:
f() {
for (( :; :; )) ; do
cat <<EOF
EOF
done
:
}
type f
when correctly processed, the output contains:
...
do
cat <<EOF
EOF
done
...
and when things go wrong, we see:
...
do
cat ;
done <<EOF
EOF
...
-mike
signature.asc
Description: This is a digitally signed message part.
- heredocs incorrectly printed in for ((...)) loop,
Mike Frysinger <=