bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#5976: 23.1.93; yanking shell commands - converted to single lines


From: Juri Linkov
Subject: bug#5976: 23.1.93; yanking shell commands - converted to single lines
Date: Tue, 20 Apr 2010 01:54:54 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu)

> 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?

-- 
Juri Linkov
http://www.jurta.org/emacs/






reply via email to

[Prev in Thread] Current Thread [Next in Thread]