checkbash(1)

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

'[[: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.

Releases

Unchanged in 2 releases since Debian 3.1 (Sarge).

  1. 3.1–4.0

Author

Dennis Stampfer <[email protected]> for the Debian Project

From debmake 3.8.3 in Debian 4.0 (Etch). Parsed by carta from the page's man source.