man checkbash (Commandes) - Check for bashisms in maintainer scripts

NAME

checkbash - Check for bashisms in maintainer scripts

SYNOPSIS

checkbash script

DESCRIPTION

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
'[[:space:]]~'
If ~ Tilde Expansion is used
'&>'
If special Redirection Symbol &> is used
'select'
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.

SEE ALSO

AUTHOR

Dennis Stampfer <kontakt@dstampfer.de> for the Debian Project