bug-bash
[Top][All Lists]
Advanced

[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

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]