Re: Condition evaluation removed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2008-09-11 at 16:45 +0100, Giles Anderson wrote:
>    export ORAENV_ASK=NO
>    export ORACLE_SID=SID1
>    source oraenv

Not answering your question, but: please don't use this format.  This
results in your configure file being egregiously and needlessly
bash-specific; it is not portable and will not run with POSIX-compliant
sh implementations.

Instead, use:

	ORAENV_ASK=NO
	ORACLE_SID=SID1
	export ORAENV_ASK ORACLE_SID
	. oraenv

Writing sh-compliant scripts is not much more onerous than writing bash
scripts, once you know the difference, and it's a huge boon to people
trying to use your code on systems where bash is not /bin/sh (even a
number of Linux distributions now use smaller, faster shells for /bin/sh
rather than bash).

If you want an easy way to check, install ash or dash or similar on your
system and use those to run your configure script.


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux