[Bug 207] New: weird behavior with hush, printf, and empty args

bugzilla at busybox.net bugzilla at busybox.net
Fri Mar 20 10:42:12 UTC 2009


           Summary: weird behavior with hush, printf, and empty args
           Product: Busybox
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: Standard Compliance
        AssignedTo: unassigned at busybox.net
        ReportedBy: vapier at gentoo.org
                CC: busybox-cvs at busybox.net
   Estimated Hours: 0.0

i cant explain this one ...

$ cat test.sh
printf '%s\n' "$@"
$ ./busybox hush ./test.sh

looks like when printf %s gets "" it incorrectly consumes an extra byte ?

bash works fine:
$ sh ./test.sh


Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the busybox-cvs mailing list