1 |
Various processes use Bourne shell (/bin/sh), which has a long and interesting |
Various processes use Bourne shell (/bin/sh), which has a long and interesting |
2 |
past and carries some necessity for care, to avoid non-portable constructs. |
past and carries some necessity for care, to avoid non-portable constructs. |
3 |
|
|
4 |
This file lists some of these constructs. Probably there are other |
The Autoconf info node "Portable Shell" contains many tips and guidelines (see |
5 |
accumulations of such tips somewhere on the net (refs welcome!). |
there first), while this file contains specific constructs which we are in the |
6 |
|
process of contributing to that node. |
7 |
|
|
8 |
|
|
9 |
* For variable ref+assignemnt, use ${VAR-VALUE} -- some implementations |
|
10 |
also allow ${VAR:-VALUE}, but not all. |
Pending addition to Autoconf manual: |
11 |
|
|
12 |
* In Solaris 2.7 /bin/sh, "set -e -x" assigns "-x" to the |
* In Solaris 2.7 /bin/sh, "set -e -x" assigns "-x" to the |
13 |
current command line. It is better to use "set -ex". |
current command line. It is better to use "set -ex". |