bug-bash
[Top][All Lists]
Advanced

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

Re: heredoc whose eof-mark has backquotes becomes quoted


From: Chet Ramey
Subject: Re: heredoc whose eof-mark has backquotes becomes quoted
Date: Fri, 6 Apr 2018 10:38:53 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.7.0

On 4/6/18 8:32 AM, Denys Vlasenko wrote:
> Background:
> 
> Unquoted heredocs are this construct
> cat <<EOF
> heredoc will expand $var, `cmd` etc
> EOF
> 
> Quoted heredocs are this construct:
> cat <<"EOF"
> these chars are literals: $ `
> EOF
> 
> "Quoteness" also can be achieved by bkslash
> or single quotes: EO\F 'EOF' EOF"" ''EOF
> 
> 
> The bug: if there are backquotes in eof-mark,
> they become the part of eof-makr (this is ok), but they also
> make this heredoc _quoted_, which should not happen:

Thanks for the report. I'll take a look.

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



reply via email to

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