The "configure" shell script shipped with qmail-scanner-1.15 fails
under AIX (and probably on other system with simple bourne shells
/bin/sh, like Solaris for example) with the following error message:

./configure[370]: syntax error at line 507 : `(' unexpected

The problem stems from early-matched double quotes in the expressions
on lines 489 and 534:

SOCKET="`$dir/sophie -d -f README 2>&1|grep 'Socket path'|awk '{print
$NF}'|sed 's/"//g'`"
SOCKET="`$dir/trophie -d -f README 2>&1|grep 'Socket path'|awk '{print
$NF}'|sed 's/"//g'`"

The double quotes in the sed pattern should have been escaped, like
this:

SOCKET="`$dir/sophie -d -f README 2>&1|grep 'Socket path'|awk '{print
$NF}'|sed 's/\"//g'`"
SOCKET="`$dir/trophie -d -f README 2>&1|grep 'Socket path'|awk '{print
$NF}'|sed 's/\"//g'`"

It seems that the problem appears only with shells that look for the
end of the double quotes before evaluating the back-quoted expression.
Other shells (like bash or the FreeBSD /bin/sh), which evaluate the
back-quoted expression before looking for the end of the first double
quote, do not run into this problem.

The fix I suggested above (with the escaped double quotes) works with
all bourne shell implementations, and therefore I suggest it be put
into the next release.

Best regards,
Andy

Zuercher Kantonalbank, LIEW

Tel. +41 (0) 1 292 89 90, Fax +41 (0) 1 292 80 34
Briefadresse: Postfach, 8010 Zuerich, http://www.zkb.ch
___________________________________________________________________________


Disclaimer:


Diese Mitteilung ist nur fuer die Empfaengerin / den Empfaenger
bestimmt.

Fuer den Fall, dass sie von nichtberechtigten Personen empfangen wird,
bitten wir diese hoeflich, die Mitteilung an die ZKB zurueckzusenden
und anschliessend die Mitteilung mit allen Anhaengen sowie allfaellige
Kopien zu vernichten bzw. zu loeschen. Der Gebrauch der Information
ist verboten.


This message is intended only for the named recipient and may contain
confidential or privileged information.

If you have received it in error, please advise the sender by return
e-mail and delete this message and any attachments. Any unauthorised
use or dissemination of this information is strictly prohibited.



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Qmail-scanner-general mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general

Reply via email to