libtool-patches
[Top][All Lists]
Advanced

[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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]