Bug 4321

Summary: gen_build_files.sh uses printf with HUGE command line argument
Product: Busybox Reporter: Arkadiusz Miskiewicz <arekm>
Component: OtherAssignee: unassigned
Status: RESOLVED FIXED    
Severity: minor CC: busybox-cvs
Priority: P5    
Version: 1.19.x   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Host: Target:
Build:

Description Arkadiusz Miskiewicz 2011-10-18 16:32:05 UTC
busybox-1.19.2/scripts/gen_build_files.sh[67]: printf: Argument list too long

this is because I'm using mksh as /bin/sh which doesn't have builtin printf.
Comment 1 Denys Vlasenko 2011-10-19 15:48:32 UTC
status() { printf '  %-8s%s\n' "$1" "$2"; }

    printf has 3 args above


printf "%s\n" "${header}"

    two args


printf "%s\n" "${insert}"

    two args. Hmm. The problem can be here. "${insert}" may be 200k long or more.


printf "%s\n" "ERROR: INSERT line missing in: ${src}" 1>&2

    two args
Comment 3 Arkadiusz Miskiewicz 2011-10-19 16:07:37 UTC
Works for me, thanks.