[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bash-3.1 Official patch 10
From: |
Chet Ramey |
Subject: |
Re: Bash-3.1 Official patch 10 |
Date: |
Thu, 23 Feb 2006 09:41:15 -0500 |
Greg Schafer wrote:
> It appears there might be problem with this patch. Here is a test case I
> distilled from the grep-2.5.1a testsuite:
>
> status=`echo '-'| { ${GREP} -E -e 'a\' >/dev/null 2>&1 ; echo $?; }`
>
> Put that line into a file called "myfile" then run like this:
>
> # bash -n myfile
> myfile: line 1: unexpected EOF while looking for matching `''
> myfile: line 2: syntax error: unexpected end of file
>
> AFAICT, this used to be accepted by older Bash versions.
>
> Do think problem lies with this Bash patch or with test case?
It looks like the patch is over-agressive allowing backslashes to
quote characters in a backquoted command substitution. I will update
the patch, and send out the new one.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
Live Strong. No day but today.
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/