This patch is against CVS 2013-04-20 get-iana.sh
- Use /bin/sh. The file is POSIX compliant now.
- Remove EOL (end of line) whitespaces.
- Send errors to STDERR, normal messages to STDOUT.
- Remove continuation backslashes "\" when shell syntax already
knowns the line will continue e.g. after pipe "|" character.
- Fit text in column 80 (comment at the beginning).
- Instead of ${var}, simplify variables to $var.
- Prefer POSIX $((i + 1)) instead of bashism $[i + 1]
- Prefer POSIX $() to archaic backquotes `` [1]
- Use standard built-in echo(1) instead of external printf(1).
[1]
POSIX standard provides the $(...) command substitution syntax, which
improves legibility and allows nested structures.
http://www.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_06_03
Also a good read: http://mywiki.wooledge.org/BashFAQ/082
get-iana.sh POSIX