[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Condition evaluation removed
From: |
Paul Smith |
Subject: |
Re: Condition evaluation removed |
Date: |
Thu, 11 Sep 2008 21:00:47 -0400 |
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.