GNU bug report logs -
#18612
non-portable shell substitution in configure.ac
Previous Next
Full log
View this message in rfc822 format
On Thu, Oct 2, 2014 at 10:09 PM, Glenn Morris <rgm <at> gnu.org> wrote:
> Eli Zaretskii wrote:
>
>>> srcdir="/${srcdir:0:1}${srcdir:2}"
>>>
>>> I believe these are bash-specific variable expansions, not posix-compatible.
>>>
>>> This appears in an MINGW-related "if" block, so I guess most of the
>>> time it is not encountered.
>>
>> MinGW uses only Bash.
>
> But other platforms may still try to parse (?) those lines, even if they
> don't execute them. Presumably that explains:
>
>>> But in one instance, I got:
>>> $ ./configure
>>> ./configure: 3564: Syntax error: Bad substitution
To find out if that's the case here, Assaf could run the configure
script again, with this patch applied:
--- configure 2014-10-02 22:49:51.808131800 +0200
+++ configure1 2014-10-02 23:05:37.288306300 +0200
@@ -3554,6 +3554,10 @@
if test "x$MSYSTEM" = "xMINGW32" -o "x$MSYSTEM" = "xMINGW64"
then
+
+ $as_echo "Too bad. This should not be executed in this system!.
\$MSYSTEM='$MSYSTEM'" >&2
+ exit 1
+
. $srcdir/nt/mingw-cfg.site
case $srcdir in
...and tell us whether the script aborts at that "exit 1", and if so,
the value of $MSYSTEM.
--
Dani Moncayo
This bug report was last modified 10 years and 292 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.