On Sun, 27 Jan 2008 11:33:32 -0500 Finnbarr Murphy wrote:
> I am getting 3 failures relating to eval in  ksh93/test/substring.sh

> test substring.sh begins at 2008-01-27+10:32:54
>         substring.sh[176]: substitution of \?} failed
>         substring.sh[177]: substitution of '?' failed
>         substring.sh[178]: substitution of "?" failed

thanks for the report
we have not built on interix in a long time
so reports of trouble/success there are appreciated

replace the failing tests/substring.sh loop with the following
and post the tests/substring.sh test results again
---
xx='a:b'
str='(){}[]*?|&[EMAIL PROTECTED]'
for ((i=0 ; i < ${#str}; i++))
do      x=a${str:i:1}b
        g=$(eval print -r -- \${xx//:/\\${str:i:1}})
        [[ $g == "$x" ]] || err_exit "substitution of \\${str:i:1}} failed -- 
expected '$x', got '$g'"
        [[ $g == "$x" ]] || err_exit "substitution of '${str:i:1}' failed -- 
expected '$x', got '$g'"
        [[ $g == "$x" ]] || err_exit "substitution of \"${str:i:1}\" failed -- 
expected '$x', got '$g'"
done
---

_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users

Reply via email to