"here document" bug in 1.13.0

Aras Vaichas arasv at magtech.com.au
Wed Nov 26 02:40:35 UTC 2008


Hi,

I just upgraded from 1.12.0 to 1.13.0 and noticed that many of my shell
scripts seg faulted. I traced the problem to "here documents" inside
nested functions.

Here is an test example:

--- SNIP ---
#!/bin/sh
function1() {
    echo f1

    function2() {
        echo f2
        cat << EOF
        This causes segfault
EOF
}

    function2
}

function1

--- UNSNIP ---

# ./test
f1
Segmentation fault


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________



More information about the busybox mailing list