主题: 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