Change 4575

chris_comparini (Chris Comparini)
Chris Comparini committed this change into //guest/chris_comparini/public/jam/src
Request Review
Download .zip
Fix to bug reported by Paul Forgey to the Jamming mailing list
on 12 Oct 2004 with subject: [jamming] J= bug?

In a nutshell, a join of an expansion of a range of elements specified
by $(v[n-m]) of a the :J=x modifier resulted in an empty list being
returned from var_expand().  This was due to an incorrect
assumption regarding whether or not we were at the end of a list
of values to join.

The bug manifested itself as:
VAR = 1 2 3 4 ;
Echo $(VAR[2-3]:J=.) ;    # prints nothing!
  • Files 1
  • Comments 0
1 edited 0 added 0 deleted
expand.c#2
Loading...
Tip: Use n and p to cycle through the changes.