Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #15572
| From | Chet Ramey <chet.ramey@case.edu> |
|---|---|
| Newsgroups | gnu.bash.bug |
| Subject | Re: Incomplete command substitution in here-document not regarded as an error |
| Date | 2019-11-07 15:06 -0500 |
| Message-ID | <mailman.846.1573157206.13325.bug-bash@gnu.org> (permalink) |
| References | <CAH7i3Lp7ZQZj2FmXBa8fG8oY01GMbNKy916i1jcUt0eq57x8Tg@mail.gmail.com> <80152716-0776-f052-cfd3-7159fcfbe6b0@case.edu> |
On 11/6/19 4:37 PM, Oğuz wrote: > cat <<EOF > $(seq 10 > EOF > > prints 1, while it should report a syntax error. Thanks for the report. Bash has, for some years, allowed EOF/EOS to terminate a command substitution in certain circumstances, but this really only shows up when you're expanding it inside a here-document. There is a (relatively cryptic) warning message, but that only shows up in development builds. It seems reasonable to make the behavior when expanding here- documents match the behavior outside them. Chet -- ``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/
Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread
Re: Incomplete command substitution in here-document not regarded as an error Chet Ramey <chet.ramey@case.edu> - 2019-11-07 15:06 -0500
csiph-web