GNU bug report logs - #5976
23.1.93; yanking shell commands - converted to single lines

Previous Next

Package: emacs;

Reported by: Warren Harris <warrensomebody <at> gmail.com>

Date: Mon, 19 Apr 2010 19:29:01 UTC

Severity: normal

Tags: notabug

Done: npostavs <at> users.sourceforge.net

Bug is archived. No further changes may be made.

Full log


Message #11 received at 5976 <at> debbugs.gnu.org (full text, mbox):

From: Warren Harris <warrensomebody <at> gmail.com>
To: Juri Linkov <juri <at> jurta.org>
Cc: 5976 <at> debbugs.gnu.org
Subject: Re: bug#5976: 23.1.93;
	yanking shell commands - converted to single lines
Date: Tue, 20 Apr 2010 09:29:08 -0700
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




This bug report was last modified 8 years and 57 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.