histreduceblanks can corrupt history
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zsh (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
since upgrading to trusty, I have occasionally found strangely garbled commands in my zsh command history. I believe I've narrowed it down to the 'histreduceblanks' option. I'm not sure exactly what the trigger is, but the following has been a reliable repro for me (cut and paste is not strictly required, but it's where I get leading spaces from most often.
Start a new zsh -f
use a web browser to navigate to http://
select/copy the sentence "Learn more about Launchpad in the user guide or try it for yourself in our sandbox environment." by triple clicking.
in the zsh window,
set the histreduceblanks option
start an echo command with a trailing space, paste the text, and press return
hit the up arrow to view the previous command in history. note it's garbled.
press return, note that the actual output is wrong, not just the displayed command
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: zsh 5.0.2-3ubuntu6
ProcVersionSign
Uname: Linux 3.13.0-29-generic x86_64
NonfreeKernelMo
ApportVersion: 2.14.1-0ubuntu3.2
Architecture: amd64
CurrentDesktop: XFCE
Date: Thu Jun 26 17:11:39 2014
SourcePackage: zsh
UpgradeStatus: Upgraded to trusty on 2014-06-16 (10 days ago)
mtime.conffile.
Status changed to 'Confirmed' because the bug affects multiple users.