1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
.TH CHECKBASH 1 "2002-12-07" "Debian Project" "Debian Utilities"
.SH NAME
checkbash \- Check for bashisms in maintainer scripts
.SH SYNOPSIS
.B checkbash
.I script
.SH DESCRIPTION
.B checkbash
is a script used by
.B debstd
to check maintainer scripts for bashisms.
.br
.B debstd
runs
.B checkbash
on files (preinst, postinst, prerm and postrm) starting with #!/bin/sh.
.PP
When a bashism is detected,
.B checkbash
prints a message and quits. Thus, only the first bashism is printed.
.PP
.B checkbash
checks for the following bashisms:
.TP
.B '{.*,.*}'
If { and } are used
.TP
.B '[[:space:]]~'
If ~ Tilde Expansion is used
.TP
.B '&>'
If special Redirection Symbol &> is used
.TP
.B 'select'
If the select Statement is used
.SH RETURN VALUE
If no bashisms were found,
.B checkbash
quits with 0. If bashisms were found, it quits with 1.
.SH SEE ALSO
.BR debstd (1)
.SH AUTHOR
Dennis Stampfer <kontakt@dstampfer.de> for the Debian Project
|