[Bug 1334858] [NEW] histreduceblanks can corrupt history

Chaskiel Grundman 1334858 at bugs.launchpad.net
Thu Jun 26 21:25:09 UTC 2014


Public bug reported:

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://launchpad.net
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
ProcVersionSignature: Ubuntu 3.13.0-29.53-generic 3.13.11.2
Uname: Linux 3.13.0-29-generic x86_64
NonfreeKernelModules: openafs
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..etc.zsh.zshrc: 2013-08-02T12:59:03

** Affects: zsh (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug trusty

** Attachment added: "screenshot of zsh in xterm"
   https://bugs.launchpad.net/bugs/1334858/+attachment/4140021/+files/zsh.png

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to zsh in Ubuntu.
https://bugs.launchpad.net/bugs/1334858

Title:
  histreduceblanks can corrupt history

Status in “zsh” package in Ubuntu:
  New

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://launchpad.net
  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
  ProcVersionSignature: Ubuntu 3.13.0-29.53-generic 3.13.11.2
  Uname: Linux 3.13.0-29-generic x86_64
  NonfreeKernelModules: openafs
  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..etc.zsh.zshrc: 2013-08-02T12:59:03

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/zsh/+bug/1334858/+subscriptions



More information about the foundations-bugs mailing list