From: Thierry Volpiatto <thierry.volpiatto@gmail.com>
To: bug-gnu-emacs@gnu.org
Subject: bug#5976: 23.1.93; yanking shell commands - converted to single lines
Date: Wed, 21 Apr 2010 12:13:12 +0200 [thread overview]
Message-ID: <87hbn55d1j.fsf@tux.homenetwork> (raw)
In-Reply-To: <11AF3D64-5B4A-4131-8BDC-9992B8C1DC54@gmail.com>
Juri Linkov <juri@jurta.org> writes:
>>> Doing this in bash, I get the same result because it saves multi-line
>>> commands on separate lines in ~/.bash_history and reads each line as
>>> a separate command. Why should Emacs be different in this regard?
>>
>> I could have sworn that aquamacs 1.9 preserved multi-line shell commands
>> across shell sessions, but perhaps I'm mistaken. It certainly does
>> preserve multi-line shell commands within a single shell session.
>
> Bash preserves multi-line shell commands within a single shell session too
> when its shopt option `cmdhist' is set.
>
> There is also the option `lithist' that replaces newlines with semicolon
> separators. But it doesn't help because it doesn't replace newlines
> inside command line arguments.
>
> So I see no way to save multi-line shell commands in ~/.bash_history
> in a way compatible with Bash. Do you have any ideas?
It seem eshell does what you ask, maybe you should look there?
--
Thierry Volpiatto
Gpg key: http://pgp.mit.edu/
next prev parent reply other threads:[~2010-04-21 10:13 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-19 19:28 bug#5976: 23.1.93; yanking shell commands - converted to single lines David Reitter
2010-04-19 22:54 ` Juri Linkov
2010-04-20 16:29 ` Warren Harris
2010-04-21 8:43 ` Juri Linkov
2010-04-21 10:13 ` Thierry Volpiatto [this message]
2010-04-21 15:41 ` Juri Linkov
2010-04-21 17:36 ` Thierry Volpiatto
2016-06-08 3:13 ` Noam Postavsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87hbn55d1j.fsf@tux.homenetwork \
--to=thierry.volpiatto@gmail.com \
--cc=bug-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.