On 06/29/2010 12:52 AM, Gary V. Vaughan wrote: >>>> i=$((i+1)) > > I think we can't rely on the availability of $((expr)) :(
Is there any shell that supports XSI but not $(()), seeing as how both
are mandated by POSIX? But we've already come up with better
alternatives, so this is a moot point.
> However, I think that will be considerably slower than the ${1:0:2}/${1:2}
> approach. But we're probably talking microseconds... so I'm open to
> advice on whether to use bash/ksh variable substrings exclusively (as per
> current master); XSI exclusively (although we make heavy use of += already
> if it is available, so not really exclusively); or to prefer substring
> syntax over the XSI syntax if either or both are available, falling back
> on sed if necessary?
Ultimately, I'd like to fix m4sh to make it easier to probe/require XSI
support, but that will have to wait until after autoconf 2.66.
--
Eric Blake [email protected] +1-801-349-2682
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
