Unportable test(1) construct

Thomas Klausner tk at giga.or.at
Mon Oct 16 18:51:18 EDT 2006


Hi!

gnucash-2.0.1 (and svn from a few minutes ago) uses the unportable
bash "==" comparison operator for test(1). It is not supported by
most other shells or even test(1) from GNU coreutils. Please use
"=" instead. Patch against 2.0.1 is attached.

Cheers,
 Thomas
-------------- next part --------------
$NetBSD: patch-ae,v 1.3 2006/10/16 22:47:53 wiz Exp $

--- src/backend/postgres/test/run-tests.sh.orig	2006-07-30 23:41:33.000000000 +0000
+++ src/backend/postgres/test/run-tests.sh
@@ -14,7 +14,7 @@ if ${srcdir}/db-control.sh create; then
 elif [ "${PGHOST}X" != "X" ]; then
 # This expects the logged in user to have authority
 # to create databases.
-    if [ "${PGPORT}X" == "X" ]; then
+    if [ "${PGPORT}X" = "X" ]; then
 	export PGPORT=5432
     fi
     ./test-db $PGHOST $PGPORT || EXIT_VALUE=1


More information about the gnucash-devel mailing list