There's a `checkbashisms` command in Debian's `devscripts` package to ensure scripts will work correctly under both shells.