13.4.3 awk Portability Issues

gawk’s internationalization features were purposely chosen to have as little impact as possible on the portability of awk programs that use them to other versions of awk. Consider this program:

    TEXTDOMAIN = "guide"
    if (Test_Guide)   # set with -v
    print _"don't panic!"

As written, it won’t work on other versions of awk. However, it is actually almost portable, requiring very little change:



This is good fodder for an “Obfuscated awk” contest.