cc: [email protected] Subject: Re: [ast-users] Bug with arithmetic and variable substitution in long here-docs --------
> I'm writing to report a repeatable bug involving long here-documents > that have both arithmetic and variable substitution. This is the > simplest script I can come up with that shows this problem: > #!/bin/ksh > > FOO=1 > BAR=foobarbaz > > cat <<#EOF > $(($FOO + 1)) > $BAR meep > > # repeat the above two lines around 20,000 times > EOF > > When this is run, ksh will substitute some of the $BAR's with blanks: > > tiferet:~ $> ksh foo.ksh | grep meep | grep -v foobarbaz > meep > meep > meep > meep > meep > > > I was able to reproduce this with ksh93t and ksh93u with a repeat around 40K. I am unable to reproduce this on the latest ksh93u+ with 100K repeats. There were some here doc changes that must have accounted for the fix. When the release is posted, I will have you try to reproduce the problem. David Korn [email protected] _______________________________________________ ast-users mailing list [email protected] https://mailman.research.att.com/mailman/listinfo/ast-users
