In mongodb/mongo-php-driver#655 (PHPC-1014), a user reported an issue installing the PHP driver in Alpine Linux, which uses a BusyBox's shell. Of note, his troubles only started with PHP driver 1.3.0 (bundling libmongoc and libbson 1.8.0). PHP driver 1.2.11, which bundles 1.5.5, had no issues.
Running our configure script through shellcheck reported the following error of interest:
In configure line 12252: MONGOC_MAJOR_VERSION=$((cat $MONGOC_CURRENT_FILE; echo) | cut -d- -f1 | cut -d. -f1) ^-- SC1073: Couldn't parse this $((..)) expression. ^-- SC1009: The mentioned parser error was in this $((..)) expression. ^-- SC1072: Expected "))". Fix any mentioned problems and try again.
I believe this was introduced by the following commits:
- is depended on by
-
PHPC-1014 config.m4 produces unterminated quoted string
- Closed
- related to
-
CDRIVER-2320 Use "shellcheck" to lint generated shell scripts from Autotools
- Closed
- links to