On Thu, 6 Feb 2020, Allin Cottrell wrote:
OK, I've had a further go at fixing this in git. It seems there
_was_ a rationale for the old special-casing of backslash-quote in the
conditional assignment context, but it should be turned off whenever
the sub-context is sprintf().
Both of the following tests now work:
<hansl>
# Sven's case
string s = 1 ? sprintf("\"hey\"") : "other"
print s
# Jack's case
string sep = $windows ? "\" : "/"
print sep
</hansl>
Confirmed working, and color_xy works ok too. Thanks, Allin!
-------------------------------------------------------
Riccardo (Jack) Lucchetti
Dipartimento di Scienze Economiche e Sociali (DiSES)
Università Politecnica delle Marche
(formerly known as Università di Ancona)
r.lucchetti(a)univpm.it
http://www2.econ.univpm.it/servizi/hpp/lucchetti
-------------------------------------------------------