テーマ: portability
-
Writing a portable POSIX sh script across Linux, BSD, macOS and AIX
A script meant to run unchanged on Debian's dash, a Linux box's bash-as-sh, FreeBSD, macOS and AIX has to stay inside the POSIX Shell Command Language and avoid GNU-only tool flags; checkbashisms and a short list of GNU-versus-BSD command differences catch most of what breaks.
-
Python struct の転送形式:バイト順、サイズ、パディングを明示する
契約が明示的に要求する場合を除き、移植可能なファイル形式やネットワーク形式にネイティブ ABI の配置を使わないようにします。
機械可読: JSON