On 23 February 2013 01:05, David Korn <[email protected]> wrote:
> cc: [email protected]
> Subject: Re: [ast-users] Substitution expansion no longer re-evaluates  
> replacement.
> --------
>
>> Hi, Since sometime after 93u, "${x[@]/pat/str}" no longer re-evaluates 
>> expansion
>> s in the replacement string for multi-word expansions.
>>
>>  $ ksh -c 'x=({1..5}); printf %s\\n 
>> "${x[*]/+([[:digit:]])/$((.sh.match[1]*2))}"
>>  "${.sh.version}"'
>> 2 4 6 8 10
>> Version JM 93u 2011-02-08
>>  $ ksh+ -c 'x=({1..5}); printf %s\\n 
>> "${x[*]/+([[:digit:]])/$((.sh.match[1]*2))}
>> " "${.sh.version}"'
>> 0 0 0 0 0
>> Version AJM 93v- 2013-02-13
>> --
>> Dan Douglas
>>
>
> The behavior has been restored in the next ksh93v- alpha.  The ksh93u version
> that used to work had a bug which caused a core dump if the replacment
> string contained a ${var/pattern/string} in the replacement string.

So that bug is back again?

Ced
-- 
Cedric Blancher <[email protected]>
Institute Pasteur
_______________________________________________
ast-users mailing list
[email protected]
http://lists.research.att.com/mailman/listinfo/ast-users

Reply via email to