[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Add an XSI replacement for func_split_short_opt.
From: |
Eric Blake |
Subject: |
Re: [PATCH] Add an XSI replacement for func_split_short_opt. |
Date: |
Tue, 29 Jun 2010 08:03:04 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100621 Fedora/3.0.5-1.fc13 Lightning/1.0b2pre Mnenhy/0.8.2 Thunderbird/3.0.5 |
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 address@hidden +1-801-349-2682
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
- [PATCH] Add an XSI replacement for func_split_short_opt., Gary V. Vaughan, 2010/06/27
- Re: [PATCH] Add an XSI replacement for func_split_short_opt., Ralf Wildenhues, 2010/06/27
- Re: [PATCH] Add an XSI replacement for func_split_short_opt., Gary V. Vaughan, 2010/06/27
- Re: [PATCH] Add an XSI replacement for func_split_short_opt., Eric Blake, 2010/06/28
- Re: [PATCH] Add an XSI replacement for func_split_short_opt., Ralf Wildenhues, 2010/06/28
- Re: [PATCH] Add an XSI replacement for func_split_short_opt., Eric Blake, 2010/06/28
- Re: [PATCH] Add an XSI replacement for func_split_short_opt., Gary V. Vaughan, 2010/06/29
- Re: [PATCH] Add an XSI replacement for func_split_short_opt., Paolo Bonzini, 2010/06/29
- Re: [PATCH] Add an XSI replacement for func_split_short_opt., Gary V. Vaughan, 2010/06/29
- Re: [PATCH] Add an XSI replacement for func_split_short_opt.,
Eric Blake <=
- Re: [PATCH] Add an XSI replacement for func_split_short_opt., Gary V. Vaughan, 2010/06/29
- Re: [PATCH] Add an XSI replacement for func_split_short_opt., Ralf Wildenhues, 2010/06/29
- Re: [PATCH] Add an XSI replacement for func_split_short_opt., Gary V. Vaughan, 2010/06/29
- Re: [PATCH] Add an XSI replacement for func_split_short_opt., Ralf Wildenhues, 2010/06/29
- Re: [PATCH] Add an XSI replacement for func_split_short_opt., Eric Blake, 2010/06/29