history-incremental-search-backward weird behavior for multiline commands in 5.0.x

Bug #1342724 reported by Augie Fackler
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
zsh (Ubuntu)
Fix Released
Undecided
Unassigned
Nominated for Trusty by Graham Inggs

Bug Description

In moving from precise to trusty (work machine, so on LTS cycle), I noticed that history-incremental-search-backward is subtly broken in 5.0.x for history entries loaded from a file (as opposed to ones that happened in the current shell session):

$ echo foo \
> bar
foo bar
$ ^R bar
# finds the full command

but then in a new shell:
$ ^R bar
# finds only the word bar, not the full echo command.

This works fine in zsh 4.3.17 and zsh 4.3.11.

I already emailed this to <email address hidden>, but I figured that a tracking bug for other hapless victims of this regression here might be warranted as well.

Revision history for this message
Augie Fackler (durin42) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in zsh (Ubuntu):
status: New → Confirmed
Revision history for this message
Margarita Manterola (marga-9) wrote :

I'm attaching a debdiff with the applied patch.

Revision history for this message
Graham Inggs (ginggs) wrote :

This needs to be fixed in Utopic first before we can do a SRU for Trusty, see:
https://wiki.ubuntu.com/StableReleaseUpdates#Procedure

Unsubscribing sponsors for now.

Revision history for this message
Graham Inggs (ginggs) wrote :

The fix for this is included in zsh 5.0.5-dev-2-1 in debian experimental.

Axel Beckert (xtaran)
Changed in zsh (Ubuntu):
status: Confirmed → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (7.5 KiB)

This bug was fixed in the package zsh - 5.0.7-5ubuntu1

---------------
zsh (5.0.7-5ubuntu1) vivid; urgency=medium

  * Merge from Debian unstable, remaining changes:
    - debian/zshrc: Enable completions by default, unless
      skip_global_compinit is set
    - Drop yodl from Build-Depends.
    - Support cross-compiling:
      - Adjust upstream autoconf cross-compile default fallbacks.
      - Skip zcompile when cross-compiling.
      - Add libelf-dev dependency.
    - Add libncurses5-dev build-dep to avoid tgoto implicit function
    declaration and thus, implicit integer to pointer conversion. zsh
    should build with just ncursesw though.
    - Use dh_autotools-dev_update|restoreconfig in addition to
    dh_autoreconf to actually update config.sub|guess.
    - prebuild docs.

zsh (5.0.7-5) unstable; urgency=medium

  * [ab70e9dc] Pre-Depend on dpkg >= 1.17.14 explicitly for using
    symlink_to_dir with relative symlinks (Closes: #770226)

zsh (5.0.7-4) unstable; urgency=medium

  [ Simon McVittie ]
  * [991d536c] Make zsh source package binNMU-safe (Closes: #768937)
    + Do not use dh_installdocs --link-doc=zsh-common in
      architecture-dependent packages
    + Symlink zsh-common documentation files into /usr/share/doc/zsh
    + Migrate /usr/share/doc/zsh and /usr/share/doc/zsh-dev from symlink
      to directory using dpkg-maintscript-helper

  [ Axel Beckert ]
  * [7b632623] Simplify Simon's patch by making /usr/share/doc/zsh/doc a
    symlink to ../zsh-common/ in the zsh binary package. Avoids unpack
    errors probably caused by having _two_ binary packages containing the
    directory which was previously a symlink. (See the log of #768937.)
  * [0e03e623,ad143a67] Add Pre-Depends: ${misc:Pre-Depends} for using
    dpkg-maintscript-helper's symlink_to_dir.
  * [af8ab9de] Also remove zsh4 alternative for rzsh (Closes: #768241)
  * [353e05ab] Add a post-jessie TODO list to the source package

zsh (5.0.7-3) unstable; urgency=low

  * Upload to unstable again
  * [5409996b ff.] Remove zsh4 and zsh4-static from list of alternatives
    in the according postinst scripts. Also raise priorities of zsh5 and
    zsh5-static alternatives by 1 so that they have a higher priority than
    the old ones. (Closes: #766015)
  * [29ce7d34] Mention https://wiki.debian.org/Zsh in README.Debian
  * [b33dd34f] Switch the zsh and zsh-common binary package stanzas in
    debian/control to get README.Debian installed again. (dh_installdocs
    installs it into the first binary package listed in debian/control.)

zsh (5.0.7-2) experimental; urgency=low

  * [0e36f80d ff.] Workflow documentation: Many updates
  * [438969ff] Add zsh4(-static) wrapper scripts to ease switch to zsh5
    (Closes: #707760)
  * [180ad946] Add lintian overrides for unusual-interpreter in zsh4
    wrapper script
  * [2bc52e92] Drop prebuild target from debian/rules (unused)
  * [8ece55fe] Add a get-orig-source target to debian/rules
  * [503d6807] Add debian/bin/commit2quilt for easier cherry-picking
  * Cherry-pick a bunch of post-5.0.7 fixes from upstream:
    + [46859b9c] a03227de/33405: vcs_info: Make sure maxexports is set
      when VCS_INFO_set is called
    + [849017f2...

Read more...

Changed in zsh (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.