[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnucobol-3.1-rc1 and Bashisms in atlocal
From: |
Jeffrey Walton |
Subject: |
gnucobol-3.1-rc1 and Bashisms in atlocal |
Date: |
Sun, 12 Jul 2020 20:14:09 -0400 |
Hi Everyone,
This may be causing some problems on OS X. atlocals says around line 85:
SHELL=${CONFIG_SHELL-'/bin/sh'}
But then around line 135:
| if test "$GNUCOBOL_TEST_LOCAL" != "1"; then
| ABS_COBC="${abs_top_builddir}/cobc/cobc"
| ABS_COBCRUN="${abs_top_builddir}/bin/cobcrun"
| else
| ABS_COBC="$(which cobc)"
| ABS_COBCRUN="$(which cobcrun)"
| fi
I believe $(...) is Bash; atlocal should use backticks for /bin/sh.
atlocal should probably use `command -v cobc 2>/dev/null` for the
test. 'command -v' is Posix and and handles shell aliases properly.
'which' is not posix and does not consult shell configuration files.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- gnucobol-3.1-rc1 and Bashisms in atlocal,
Jeffrey Walton <=