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!