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

From: Thierry Volpiatto <[email-masked]>
Date: Wed, 21 Apr 2010 19:36:48 +0200

Juri Linkov <[email-masked]> writes:

>>> 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?
>
> Does eshell save multi-line shell commands in ~/.bash_history
> compatible with Bash?
No, it save in eshell file history (.emacs.d/.eshell/)

,----
| thierry@~/.emacs.d/.eshell $ ls
| alias  history  lastdir  profile
`----

,----
| thierry@~/.emacs.d/.eshell $ echo 'hello
| world'
| hello
| world
| ==> C-up RET
| thierry@~/.emacs.d/.eshell $ echo 'hello
| world'
| hello
| world
`----

That save like that in history file:

,----
| echo 'helloworld'
| echo 'helloworld'
`----

HTH

-- 
Thierry Volpiatto
Gpg key: http://pgp.mit.edu/