[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
portability bug (shell syntax)
From: |
Peter Selinger |
Subject: |
portability bug (shell syntax) |
Date: |
Fri, 6 Aug 2010 01:02:42 -0300 (ADT) |
Hi,
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
Should it perhaps be something like this?
func_arith_result=`expr $*`
Best wishes, -- Peter
- portability bug (shell syntax),
Peter Selinger <=