13.2.2 POSIX shells
Several packages provide a POSIX shell in Debian:
-
dash (Sarge)
-
ash (Woody)
-
bash
-
pdksh
If you are writing a shell script for portability, it is best to write it as a
POSIX shell script. Use /bin/sh linked to ash (or
dash) to test its POSIX compliance. Avoid writing scripts with
"bashisms" or the "zshisms". For example, avoid:
The description for the shell in this document applies only for the POSIX type
shells and thus does not apply for the csh type shells including
tcsh.