Subject: bug#18987: the bourne shell printf-vs-\xHH portability trap

From: [email-masked]
Date: Sat, 08 Nov 2014 12:46:15 -0700

Norihiro Tanaka <[email-masked]> wrote:

> Thanks, but it seem that it is also unportable.  On Solaris 10 and AIX 7,
> below.  Need Gawk for tests?
>
> $ awk 'BEGIN { printf "\x41" }' </dev/null
> \x41

If you use octal it should work with any awk.

Arnold