Ticket #420 (closed defect: fixed)
Non-portable test in configure script
| Reported by: | anon | Owned by: | somebody |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | component1 | Version: | 2.9.22 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
The configure(.in) script contains the following test:
if test ${a} == "gpgsql"; then
However the "==" notation is a bash'ism, it is not a standard (POSIX) requirement for the "test" or "[" command to implement it. Worse, in many implementations this expression will unconditionally evaluate to false (without error), leading to unexpected behaviour.
Please change this to "=" for portable behaviour across POSIX Bourne shells. Patch attached.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
