[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: portability bug (shell syntax)
From: |
Ralf Wildenhues |
Subject: |
Re: portability bug (shell syntax) |
Date: |
Fri, 6 Aug 2010 07:45:00 +0200 |
User-agent: |
Mutt/1.5.20 (2010-04-22) |
Hi Peter,
* Peter Selinger wrote on Fri, Aug 06, 2010 at 06:02:42AM CEST:
> I am using libtool-2.2.10 on a
> SunOS chase-sun 5.10 Generic_118833-20 sun4u sparc SUNW,Ultra-4
>
> Line 665 of libtool is:
>
> func_arith_result=$(( $* ))
>
> Apparently this syntax is not portable, as Sun's /bin/sh gives:
>
> ../libtool: syntax error at line 665: `func_arith_result=$' unexpected
Thanks for the bug report. configure should actually be creating a
libtool script with the portable code instead of the faster XSI
implementation if it determines the shell to not be XSI compliant.
Can you please show how you invoked configure, the configure output,
and output of './libtool --config'? Do you have CONFIG_SHELL, SHELL
in your environment, and if yes, what do they contain?
Thanks,
Ralf