Bug 10926

Summary: Please add support for -v option in printf
Product: Busybox Reporter: Ale <ale5000>
Component: OtherAssignee: unassigned
Status: NEW ---    
Severity: minor CC: ale5000, busybox-cvs
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Host: Target:
Build:

Description Ale 2018-04-07 12:08:55 UTC
Please add support for -v option in printf:
-v VAR	If given, the output is assigned to the variable VAR instead of printed to stdout (comparable to sprintf() in some way)

Example:
val1="111"
val2="222"
printf -v var '%s_%s' "$val1" "$val2"
echo "$var"