bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: parsing error with heredoc and command substitution


From: Chet Ramey
Subject: Re: parsing error with heredoc and command substitution
Date: Thu, 15 Jul 2010 09:24:15 -0400

> Bash Version: 4.1
> Patch Level: 5
> Release Status: release
> 
> Description:
> 
> The following script used to work in bash 3.2 but does not work with
> bash 4.x (I tried 4.0, 4.1.5, and 4.1.7)
> 
> ------
> #!/bin/bash
> 
> a=$(/bin/cat << EOF | wc -l
> a
> b
> EOF
> )
> -----
> 
> /tmp/bug.sh: line 3: unexpected EOF while looking for matching `)'
> /tmp/bug.sh: line 8: syntax error: unexpected end of file

Thanks for the report.  This will be fixed in the next release of bash.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]