>>>>> "Bruce" == Bruce Momjian <[EMAIL PROTECTED]> writes:
Bruce> The proper code is attached. A simple use of ${var1:-var2} does
Bruce> the trick. LINGUAS is assigned right after the loop anyway, so
Bruce> there is no need to assign a value to it as part of the for
Bruce> loop.
Hmm, a late reply, but better than nothing :) Here is what the
autoconf manual says:
----------------------------------
Another nonportable shell programming construction is
VAR=${VAR:-VALUE}
The intent is to set VAR to VALUE only if it is not already set, but if
VAR has any value, even the empty string, to leave it alone. Old BSD
shells, including the Ultrix `sh', don't accept the colon, and complain
and die. A portable equivalent is
: ${VAR=VALUE}
-------------------------------------
Bruce> Seems few people are using BSD sh as /bin/sh anymore.
Could you give the exact reference of your shell and writeup a small
description of the problem, so that I can send a message to the
autoconf list (you can also do it yourself if you feel like it). They
will certainly be interested to find out if their portable shell
guidelines are wrong.
JMarc