Bug 4321 - gen_build_files.sh uses printf with HUGE command line argument
Summary: gen_build_files.sh uses printf with HUGE command line argument
Status: RESOLVED FIXED
Alias: None
Product: Busybox
Classification: Unclassified
Component: Other (show other bugs)
Version: 1.19.x
Hardware: PC Linux
: P5 minor
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-18 16:32 UTC by Arkadiusz Miskiewicz
Modified: 2011-10-19 16:25 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.