[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bash-4.0 regression: escaping of semicolons in subshell
From: |
Chet Ramey |
Subject: |
Re: bash-4.0 regression: escaping of semicolons in subshell |
Date: |
Sun, 22 Feb 2009 16:16:57 -0500 |
User-agent: |
Thunderbird 2.0.0.19 (Macintosh/20081209) |
Mike Frysinger wrote:
> bash-4.0 mishandles this code while bash-3.2_p48 and earlier work fine:
> echo $(echo \;)
Try the attached patch.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/
*** ../bash-4.0/parse.y 2009-01-08 08:29:12.000000000 -0500
--- parse.y 2009-02-22 16:08:54.000000000 -0500
***************
*** 3307,3311 ****
/* Meta-characters that can introduce a reserved word. Not perfect
yet. */
! if MBTEST((tflags & LEX_RESWDOK) == 0 && (tflags & LEX_CKCASE) &&
(tflags & LEX_INCOMMENT) == 0 && shellmeta(ch))
{
/* Add this character. */
--- 3307,3311 ----
/* Meta-characters that can introduce a reserved word. Not perfect
yet. */
! if MBTEST((tflags & LEX_PASSNEXT) == 0 && (tflags & LEX_RESWDOK) == 0
&& (tflags & LEX_CKCASE) && (tflags & LEX_INCOMMENT) == 0 && shellmeta(ch))
{
/* Add this character. */