[prev in list] [next in list] [prev in thread] [next in thread] 

List:       bash-bug
Subject:    Re: Bash-3.1 Official patch 10
From:       Chet Ramey <chet.ramey () case ! edu>
Date:       2006-02-23 14:41:15
Message-ID: 060227140900.AA16381.SM () caleb ! ins ! cwru ! edu
[Download RAW message or body]

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/




[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic