zsh-workers
 help / color / mirror / code / Atom feed
* Bug in 'histreduceblanks' w.r.t. multi-line commands
@ 2015-01-08 10:31 Hans Meine
  2015-01-09  2:47 ` Mikael Magnusson
  0 siblings, 1 reply; 2+ messages in thread
From: Hans Meine @ 2015-01-08 10:31 UTC (permalink / raw)
  To: zsh-workers

Hi,

with the histreduceblanks option enabled, I suffered from the problem that multi-line commands like the following were mangled in the history:

cd ~/Developer && \
svn up --accept postpone -r190973 MeVisLab MeVis/Foundation && \
svn up --accept postpone -r197619 FMEwork FMEstable

The command appears in history totally broken, with missing and duplicate/substituted parts as follows:

cd ~/Developer && n n up -cceptpt ptponene -9097373 MisLabab Mis/Foundationon && svn up -eptcept ponepone -6197619 ork ork FMbltable

Interestingly, when trying to simplify this example, I noticed that the following works:

cd foo && \
ls  && \
echo bar   

I did create a new user for testing and could verify that this is not caused by a conflict with any of the other options that I enabled; even with the default config (or no_zle etc.), the problem starts to appear as soon as I enable histreduceblanks.

Best regards
  Hans

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Bug in 'histreduceblanks' w.r.t. multi-line commands
  2015-01-08 10:31 Bug in 'histreduceblanks' w.r.t. multi-line commands Hans Meine
@ 2015-01-09  2:47 ` Mikael Magnusson
  0 siblings, 0 replies; 2+ messages in thread
From: Mikael Magnusson @ 2015-01-09  2:47 UTC (permalink / raw)
  To: Hans Meine; +Cc: zsh workers

On Thu, Jan 8, 2015 at 11:31 AM, Hans Meine <hans_meine@gmx.net> wrote:
> Hi,
>
> with the histreduceblanks option enabled, I suffered from the problem that multi-line commands like the following were mangled in the history:
>
> cd ~/Developer && \
> svn up --accept postpone -r190973 MeVisLab MeVis/Foundation && \
> svn up --accept postpone -r197619 FMEwork FMEstable
>
> The command appears in history totally broken, with missing and duplicate/substituted parts as follows:
>
> cd ~/Developer && n n up -cceptpt ptponene -9097373 MisLabab Mis/Foundationon && svn up -eptcept ponepone -6197619 ork ork FMbltable
>
> Interestingly, when trying to simplify this example, I noticed that the following works:
>
> cd foo && \
> ls  && \
> echo bar
>
> I did create a new user for testing and could verify that this is not caused by a conflict with any of the other options that I enabled; even with the default config (or no_zle etc.), the problem starts to appear as soon as I enable histreduceblanks.

What version of zsh are you using? A bug like this was fixed quite recently.

-- 
Mikael Magnusson


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-01-09  2:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-08 10:31 Bug in 'histreduceblanks' w.r.t. multi-line commands Hans Meine
2015-01-09  2:47 ` Mikael Magnusson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).