[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: |
Gary V. Vaughan |
Subject: |
Re: [PATCH] Add an XSI replacement for func_split_short_opt. |
Date: |
Tue, 29 Jun 2010 16:29:24 +0700 |
Hi Paolo,
On 29 Jun 2010, at 15:21, Paolo Bonzini wrote:
> On 06/29/2010 08:52 AM, Gary V. Vaughan wrote:
>> func_split_short_arg ()
>> {
>> arg="$1"; while test ${#arg} -gt 2; do arg="${arg%?}"; done
>> rest=${1%??}
>> }
>
> What about
>
> func_split_short_arg () {
> rest=${1#??};
> arg=${1%"$rest"};
> }
Perfect! I amended libtool.m4 and pushed, many thanks.
Cheers,
--
Gary V. Vaughan (address@hidden)
- [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., Eric Blake, 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., 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