Re: another bash-ism (apparently in the rpm package install)
Shaleh wrote:
> I received this message:
> Setting up librpm1 (2.5.1-3) ...
> [: ==: unknown operand
>
> My bin/sh is -> ash.
Ah yes, the use of == instead of =.
Richard, if you ever do (or already have) a bashisms check for lintian,
adding a test for this to it would be a nice idea (a check for \[.*\s==\s
in shell scripts would probably do).
A few other packages that probably have this problem (ugh, most of them mine
- fixing now..):
bsdgames-nonfree.postrm:if [ "$1" == "purge" ]; then
cxhextris.postrm:if [ "$1" == "purge" ]; then
emacsen-common.postrm:if [ $1 == purge ]
fvwm2.postinst:if ($#ARGV == 1 && $ARGV[0] eq "configure" && $ARGV[1] ne "")
gltt2.postinst:if [ "$1" == "configure" ]; then
gravitywars.postrm:if [ "$1" == "purge" ]; then
inewsinn.postinst: if ($usenet == 0) {
iptraf.postrm:if [ $1 == purge ]; then
maelstrom.postrm:if test "$1" == "purge"; then
makedev.postinst: if let "$MAJOR == 4" ; then
rvplayer.postinst: if [ "$1" == "configure" ]; then
spamdb.postinst:if [ "$1" == "configure" ]; then
thrust.postrm:if [ "$1" == "purge" ]; then
xaw-wrappers.prerm:if [ "$1" == "remove" ]; then
xboing.postrm:if [ "$1" == "purge" ]; then
xemacs20-nomule.postinst:if [ "$ALREADY" == "0" ] ; then
xemeraldia.postrm:if [ "$1" == "purge" ]; then
xjewel.postrm:if [ "$1" == "purge" ]; then
xtrojka.postrm:if [ "$1" == "purge" ]; then
--
see shy jo
Reply to: