all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Warren Harris <warrensomebody@gmail.com>
To: Juri Linkov <juri@jurta.org>
Cc: 5976@debbugs.gnu.org
Subject: bug#5976: 23.1.93; yanking shell commands - converted to single lines
Date: Tue, 20 Apr 2010 09:29:08 -0700	[thread overview]
Message-ID: <F9C653DA-9D59-49A5-B9F9-F8CAC67E042A@gmail.com> (raw)
In-Reply-To: <87ljcjoxgp.fsf@mail.jurta.org>


On Apr 19, 2010, at 3:54 PM, Juri Linkov wrote:

>> To reproduce:
>>
>> 1. cut the following command:
>>
>> echo 'hello
>> world'
>>
>> 2. M-x shell
>> 3. paste and hit return
>> 4. see the following echoed:
>>
>> hello
>> world
>>
>> 5. C-x k (kill shell)
>> 6. M-x shell
>> 7. M-p (yank back last command)
>> 8. see that you only get:
>>
>> world'
>>
>> 9. M-p (yank again)
>> 10. see that you only get:
>>
>> echo 'hello
>
> 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.

Warren






  reply	other threads:[~2010-04-20 16:29 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 [this message]
2010-04-21  8:43     ` Juri Linkov
2010-04-21 10:13       ` Thierry Volpiatto
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=F9C653DA-9D59-49A5-B9F9-F8CAC67E042A@gmail.com \
    --to=warrensomebody@gmail.com \
    --cc=5976@debbugs.gnu.org \
    --cc=juri@jurta.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.