diff options
author | Tomi Ollila <tomi.ollila@iki.fi> | 2012-05-03 21:59:58 +0300 |
---|---|---|
committer | David Bremner <bremner@debian.org> | 2012-07-25 08:17:24 -0300 |
commit | 4cedb2a3ea77b61a5d8e9fe56e8585d312ee96ca (patch) | |
tree | 82f17f370e4faa4aa3521bae87a05662581748f4 /test/json | |
parent | a89a2b276f59d8a97a7e3e6213f385aab79094a1 (diff) |
configure: check whether shell is capable of parameter substring processing
'configure' script uses parameter substring extensively. It is Posix shell
feature. Original Bourne shell does not have such features. Some systems
still ships such shells as /bin/sh (for compatibility reasons -- shell
scripts written on those platforms are expected to work on 1990's systems).
Just testing whether parameter substring processing works will make the
shell exit due to syntax error if it is not compatible. Therefore the test
is executed in a subshell -- subshell exits with nonzero value when the
operation in question fails.
As 'if ! ...' does not work in Bourne shell, Short-circuiting construct
'||' is used to print information message and exit when expected.
Diffstat (limited to 'test/json')
0 files changed, 0 insertions, 0 deletions