[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Condition evaluation removed
From: |
Giles Anderson |
Subject: |
Re: Condition evaluation removed |
Date: |
Thu, 18 Sep 2008 15:24:26 +0100 |
Thanks Paul
Point taken about using 'export' and '.'
And, as it happens very valid, as I now have an AIX machine added to the
mix.
2008/9/12 Paul Smith <address@hidden>
> 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.
>