Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #16320
| Path | csiph.com!xmission!news.snarked.org!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail |
|---|---|
| From | "ladyrick" <ladyrick@qq.com> |
| Newsgroups | gnu.bash.bug |
| Subject | Unexpected history expanded in heredoc in $() or <() |
| Date | Fri, 29 May 2020 23:59:45 +0800 |
| Lines | 24 |
| Approved | bug-bash@gnu.org |
| Message-ID | <mailman.666.1590785260.2541.bug-bash@gnu.org> (permalink) |
| References | <tencent_487241FE2E73B9237E6574D052A92DD1DE0A@qq.com> |
| NNTP-Posting-Host | lists.gnu.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset="utf-8" |
| Content-Transfer-Encoding | base64 |
| X-Trace | usenet.stanford.edu 1590785260 20573 209.51.188.17 (29 May 2020 20:47:40 GMT) |
| X-Complaints-To | action@cs.stanford.edu |
| To | "bug-bash" <bug-bash@gnu.org>, "bash" <bash@packages.debian.org> |
| Envelope-to | bug-bash@gnu.org |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1590767986; bh=dUmh7wS9pXnDW9FFa8HI6jjiTo4WqRkJY27m8mxSTLE=; h=From:To:Subject:Mime-Version:Date:Message-ID; b=nltIuKFZ+mdoqLCKLeP/nAAmyDLHguXGIa5YVa9PLykUtk/CkxLT8CRike21YtVLy pQZq6uiWL2rowwEv2bPWjHwZqQI5hvYe6ddx6tRHYZoJQrLjP8DNVALxGmC6F1o7p+ ll/oNA6XfSQ/8hMMcie6XBKc5mAz3lLef3OE9LMc= |
| X-QQ-FEAT | EUGmOqWjSYItGPayYzRx6rTKuA3XRRHQA5ojAuCmzX5G8pWFhxQBXfPahlnaY otYg0msNBVgpI0isVU4/Tla8q5wtpgjDCdytAJ3vkatX2rub22GH0sCx5k07j2D1oiXoXWB NkRlwVXlGi7pKz+q02xGSKdTvlEYMNHeDRETfXuxICnEHozORgfWIbveGqtMQK5ko1Wg0Ot NI74W+wnGsqpQnug0wvQjsHNuohK4kx1eArzOoEjkAVfFz1vm2nCKr0qDDiD+g9dSqw1aQQ zHNP3L9fRzSLIyVxbEm0EdeHC/IMLHeXX2ng== |
| X-QQ-SSF | 00000000000000F000000000000000U |
| X-QQ-XMAILINFO | M0QuSD1R5MuIj3qezkxGt6cY4+uea1c2MOZdnhPgxX+cYI4SNQ8G02gZJruijy gou0AceaRcoGgDz/7qiZJIOKqmivCZzYfoJuIZwBnjM8YEsGK0C2l9XbmilZq7LLAdPJ5PQfOsic5 vP098YEsGfymJh8KJ65+xdyLksBJB1VZlua+FK9lArWzr0d+x27KzyNpUiy0iNQd6MmIE1hktedQ8 9cb/HFOZkIuk8+XZbXzHlQ8fenN0v5mmWtfK2ArxLqwB79jW94uQrMX7lDvJ+EZNo6gy4f00dxZsH naJYMMSEB9fjLQj222Ps5VMEHqq0Na9MhOj6Xlx7i4Gkwg0xsPKjCIPkdvkWLwNXx3xpq2qlGBbRE 5hKYsrA0f94YTSv5GCavHbvRR1Ojbl326t1eyyET33N1JifUP8YBxzQ8xdsDGiM26C6yMLYgXVVRA TzaGg6uI9yAP71RYknnNWNxJ9CnY8FZRZ0FS4GQnJ53EhsBBXVDlgd+/KiY0DF9Ba1VYFStmSMvVb 6KfksMKIFChWdRGUQ/JjpmbJl95+shyNKliHmN/PdjFLWAfLDSshIv5DWfPtfxgBxQQ5BGzJP8Ry0 qESS29U6LPSSa7PiptnUvKhCJJ0Fx972Pmk1bujK34nqRbuDHunv/FwkMNVrq0PFsMGwYigcXYKBP /GdsDr |
| X-HAS-ATTACH | no |
| X-QQ-BUSINESS-ORIGIN | 2 |
| X-Originating-IP | 123.116.182.0 |
| X-QQ-STYLE | |
| X-QQ-mid | webmail517t1590767985t1129813 |
| X-Priority | 3 |
| X-QQ-MIME | TCMime 1.0 by Tencent |
| X-Mailer | QQMail 2.x |
| X-QQ-Mailer | QQMail 2.x |
| X-QQ-SENDSIZE | 520 |
| Feedback-ID | webmail:qq.com:bgforeign:bgforeign12 |
| X-QQ-Bgrelay | 1 |
| Received-SPF | pass client-ip=54.204.34.130; envelope-from=ladyrick@qq.com; helo=smtpbguseast2.qq.com |
| X-detected-operating-system | by eggs.gnu.org: First seen = 2020/05/29 11:59:48 |
| X-ACL-Warn | Detected OS = Linux 3.1-3.10 [fuzzy] |
| X-Spam_score_int | -10 |
| X-Spam_score | -1.1 |
| X-Spam_bar | - |
| X-Spam_report | (-1.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, FROM_EXCESS_BASE64=0.979, HTML_MESSAGE=0.001, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN |
| X-Spam_action | no action |
| X-Mailman-Approved-At | Fri, 29 May 2020 16:47:38 -0400 |
| X-Content-Filtered-By | Mailman/MimeDel 2.1.23 |
| X-BeenThere | bug-bash@gnu.org |
| X-Mailman-Version | 2.1.23 |
| Precedence | list |
| List-Id | Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org> |
| List-Unsubscribe | <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe> |
| List-Archive | <https://lists.gnu.org/archive/html/bug-bash> |
| List-Post | <mailto:bug-bash@gnu.org> |
| List-Help | <mailto:bug-bash-request@gnu.org?subject=help> |
| List-Subscribe | <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe> |
| X-Mailman-Original-Message-ID | <tencent_487241FE2E73B9237E6574D052A92DD1DE0A@qq.com> |
| Xref | csiph.com gnu.bash.bug:16320 |
Show key headers only | View raw
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL -DHAVE_CONFIG_H -I. -I../. -I.././include -I.././lib -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/bash-7fckc0/bash-4.4=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -no-pie -Wno-parentheses -Wno-format-security uname output: Linux n227-006-177 4.14.81.bm.14-amd64 #1 SMP Debian 4.14.81.bm.14 Sun Aug 25 08:22:56 UTC 2019 x86_64 GNU/Linux Machine Type: x86_64-pc-linux-gnu Bash Version: 4.4 Patch Level: 12 Release Status: release Description: A heredoc starts with "cat <<'EOF'" is expected to not expand anything just like in a single quote string. But when this heredoc is in a $() or <(), history is expanded. Repeat-By: This works: ``` cat <<'EOF' !! EOF ``` This doesn't work: ``` cat <(cat <<'EOF' !! EOF ) ``` This doesn't work neither: ``` echo "$(cat <<'EOF' !! EOF )" ``` Only when I exec `set +H` to disable history expand, these examples all work.
Back to gnu.bash.bug | Previous | Next | Find similar
Unexpected history expanded in heredoc in $() or <() "ladyrick" <ladyrick@qq.com> - 2020-05-29 23:59 +0800
csiph-web