> >> # Okay > >> $ printf "%b" '\057usr\057bin\n' > >> /usr/bin > >> > >> # Not okay > >> $ printf "%b" '\0057usr\0057bin\n' > >> 7usr7bin
Looks like "%b" shall accept '\0d', '\0dd' and '\0ddd' sequences in argument strings (not in format strings). That's what the standard documents seem to define for printf. So the above is a bug in Busybox. Beside this octal constants in printf format strings and other argument strings (not %b) shall only accept '\d', '\dd' and '\ddd' sequences (without the leading zero). All this according to googled standards definitions. -- Harald _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
