"here document" bug in 1.13.0
Denys Vlasenko
vda.linux at googlemail.com
Thu Nov 27 19:53:12 PST 2008
On Wednesday 26 November 2008 03:40, Aras Vaichas wrote:
> 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
For me the freshly-updated patch fixes it:
http://busybox.net/downloads/fixes-1.13.0/busybox-1.13.0-ash.patch
Does it help you too?
--
vda
More information about the busybox
mailing list