Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #16267
| Path | csiph.com!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail |
|---|---|
| From | Robert Elz <kre@munnari.OZ.AU> |
| Newsgroups | gnu.bash.bug |
| Subject | Re: greater-than + number sign = newlines in history |
| Date | Sun, 03 May 2020 19:50:06 +0700 |
| Lines | 26 |
| Approved | bug-bash@gnu.org |
| Message-ID | <mailman.1940.1588510727.3066.bug-bash@gnu.org> (permalink) |
| References | <bb08b099-59bd-5f04-4074-bbc046e99c6c@gmx.de> <11091.1588510206@jinx.noi.kre.to> |
| NNTP-Posting-Host | lists.gnu.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| X-Trace | usenet.stanford.edu 1588510728 21531 209.51.188.17 (3 May 2020 12:58:48 GMT) |
| X-Complaints-To | action@cs.stanford.edu |
| Cc | bug-bash@gnu.org |
| To | Tobias Wendorff <tobwen@gmx.de> |
| Envelope-to | bug-bash@gnu.org |
| In-Reply-To | <bb08b099-59bd-5f04-4074-bbc046e99c6c@gmx.de> |
| Received-SPF | permerror client-ip=2001:3c8:9009:181::2; envelope-from=kre@munnari.OZ.AU; helo=munnari.OZ.AU |
| X-detected-operating-system | by eggs.gnu.org: No matching host in p0f cache. That's all we know. |
| X-Spam_score_int | -18 |
| X-Spam_score | -1.9 |
| X-Spam_bar | - |
| X-Spam_report | (-1.9 / 5.0 requ) BAYES_00=-1.9, T_SPF_HELO_PERMERROR=0.01, T_SPF_PERMERROR=0.01, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN |
| X-Spam_action | no action |
| 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 | <11091.1588510206@jinx.noi.kre.to> |
| X-Mailman-Original-References | <bb08b099-59bd-5f04-4074-bbc046e99c6c@gmx.de> |
| Xref | csiph.com gnu.bash.bug:16267 |
Show key headers only | View raw
Date: Sun, 3 May 2020 08:28:30 +0200
From: Tobias Wendorff <tobwen@gmx.de>
Message-ID: <bb08b099-59bd-5f04-4074-bbc046e99c6c@gmx.de>
| When creating a here document containing the greater-than sign followed
| by number sign, newlines get added to Bash history:
The example given showed a less than, rather than greater than,
but that turns out to be irrelevant, it is the '#' that is triggering
this.
Any line in a here doc that contains a # gets an extra \n appended
to it in history (doesn't matter if the end marker is quoted or not,
doesn't seem to matter what else is on the line, if anything, with the '#'.
(Obviousl;y I haven't tested every possibility).
If the history entry is used (up-arrow, return) to replay the command, a
new entry will be made with extra \n chars in it (the repeated command
is not seen as a duplicate - I have the var set to have dup commands
saved just once).
kre
kre
Back to gnu.bash.bug | Previous | Next | Find similar
Re: greater-than + number sign = newlines in history Robert Elz <kre@munnari.OZ.AU> - 2020-05-03 19:50 +0700
csiph-web