[Bug 10926] New: Please add support for -v option in printf

bugzilla at busybox.net bugzilla at busybox.net
Sat Apr 7 12:08:55 UTC 2018


https://bugs.busybox.net/show_bug.cgi?id=10926

            Bug ID: 10926
           Summary: Please add support for -v option in printf
           Product: Busybox
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: P5
         Component: Other
          Assignee: unassigned at busybox.net
          Reporter: ale5000 at gmail.com
                CC: busybox-cvs at busybox.net
  Target Milestone: ---

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"

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the busybox-cvs mailing list