[prev in list] [next in list] [prev in thread] [next in thread]
List: bash-bug
Subject: Re: heredoc whose eof-mark has backquotes becomes quoted
From: Chet Ramey <chet.ramey () case ! edu>
Date: 2018-04-06 14:38:53
Message-ID: 71a471b6-c396-4f57-f107-3318546a74fb () case ! edu
[Download RAW message or body]
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/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic