checkbash1
Check for bashisms in maintainer scripts
Usage
checkbash script
Overview
checkbash is a script used by debstd to check maintainer scripts for bashisms.
debstd runs checkbash on files (preinst, postinst, prerm and postrm) starting with #!/bin/sh.
When a bashism is detected, checkbash prints a message and quits. Thus, only the first bashism is printed.
checkbash checks for the following bashisms:
'{.*,.*}'
|
If { and } are used |
|---|---|
|
If ~ Tilde Expansion is used |
'&>'
|
If special Redirection Symbol &> is used |
|
If the select Statement is used |
Return value
If no bashisms were found, checkbash quits with 0. If bashisms were found, it quits with 1.
Releases
Unchanged in 2 releases since Debian 3.1 (Sarge).