Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Bug in 'histreduceblanks' w.r.t. multi-line commands
- X-seq: zsh-workers 34168
- From: Hans Meine <hans_meine@xxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Bug in 'histreduceblanks' w.r.t. multi-line commands
- Date: Thu, 8 Jan 2015 11:31:05 +0100
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author