Alpine 3.14: awk: broken printf behavior
busybox-1.33.1-r8 isn’t processing % escapes with awk. This was the last version of busybox packaged for Alpine 3.14 and demonstrates this error on up-to-date 3.14 systems. The error does not occur with -r3.
From agsutils#36:
pc:/# apk version busybox
Installed: Available:
busybox-1.33.1-r8 = 1.33.1-r8
pc:/# sha256sum $(type -p busybox)
cdc8efe04df96dd7d386c6bca0a818874faf1943da493175afca0d89762eb40f /bin/busybox
pc:/# busybox awk 'BEGIN{printf "%%type short\n%%%%\n";}'
%%type short
%%%%
Should be:
%type short
%%