On 1/30/17 10:31 AM, Christian Weisgerber wrote:
> This came up on comp.unix.shell:
> There appears to be a parsing problem in bash where the sequence
> $$'...' is treated as $'...', and $$"..." as $"...", when inside
> $(...).
Yes, this is a problem. Thanks for the report. I've attached a one-line
patch that fixes it.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU [email protected] http://cnswww.cns.cwru.edu/~chet/
*** ../bash-4.4-patched/parse.y 2016-09-11 11:31:46.000000000 -0400
--- parse.y 2017-01-30 13:53:42.000000000 -0500
***************
*** 4191,4195 ****
FREE (nestret);
}
! if MBTEST(ch == '$')
tflags |= LEX_WASDOL;
else
--- 4213,4217 ----
FREE (nestret);
}
! if MBTEST(ch == '$' && (tflags & LEX_WASDOL) == 0)
tflags |= LEX_WASDOL;
else