cc: [EMAIL PROTECTED] Subject: Re: [ast-users] ksh93/test/substring.sh errors relating to eval --------
> 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 > > Here is a simple example which illustrates the failure: > > $ tt='a\?b' > $ echo $tt > a\?b > $ echo `print $tt` > a\?b > $ echo $(echo $tt) > a\?b > $ echo $(eval print $tt) > a*b > $ echo $(eval echo $tt) > a*b > > Note that '?' is being replaced by '*' when eval is involved. > > Is this the expected behavour? PDKSH and bash-3.2 give the same results > on this platform (Microsoft Vista Ultimate with SUA i.e. Interix 6.0) > > BTW, ksh93 ported to this platform relatively painlessly except for > some issues with gl_dirnext() code. I will feed back the diffs when > I am happy with the port. Thanks, feed back the diffs. > > - Finnbarr I tried this on UWIN and it doesn't happen. I get a?b. The only way that you should be able to get a*b is if there is a file named 'a*b' in the current directory. The eval turns \? into ? which trys matching a?b. David Korn [EMAIL PROTECTED] _______________________________________________ ast-users mailing list [email protected] https://mailman.research.att.com/mailman/listinfo/ast-users
