[Pkg-zsh-devel] Bug#844710: autocorrection suggested rm for typing mr without typing "y"

Martin Steigerwald martin.steigerwald at teamix.de
Fri Nov 18 10:50:41 UTC 2016


Package: zsh
Version: 5.2-5+b1
Severity: normal
Tags: upstream

Dear maintainer,

# Actual result

Both zsh 5.0.7-5 on Jessie…

ms at intraws:~/Backup/Mail/Linux#1> mr test
zsh: correct 'mr' to 'rm' [nyae]? n
zsh: command not found: mr

as well as 5.2-5+b1

ms at merkaba:~#127> mr test
zsh: correct 'mr' to 'rm' [nyae]? n
zsh: command not found: mr

suggest "rm" for "mr" but on simply typing return they choose "n", which is
a sane default.

Yet, I had this:

ms at intraws:~/Backup/Mail/Linux> mr kernel-ml_archive.gz kernel-ml_archive_2014-1b.gz
zsh: correct 'mr' to 'rm' [nyae]?
rm: das Entfernen von „kernel-ml_archive_2014-1b.gz“ ist nicht möglich: Datei oder Verzeichnis nicht gefunden

I didn´t type yes, as when I type "y", it is shown on command line:

ms at intraws:~/Backup/Mail/Linux#1> LANG=C mr test
zsh: correct 'mr' to 'rm' [nyae]? y
rm: cannot remove 'test': No such file or directory

And I really didn´t type "y" there, I am pretty sure of that, but I may
have hit another key by accident. And lost a (not so important) file, as
it was completed after last snapshot was being taken.

Unfortunately so far I have no idea on how to reproduce this.


# Expected results

1. Never autocorrect until I say "y"!

Ideally also:

2. Do not autocorrect to dangerous commands.


I think this is an upstream issue and would also report it there, if it shelps.

Thanks,
Martin


-- Package-specific info:
Packages which depend, recommend, suggest or enhance a zsh package and hence may provide code meant to be sourced in .zshrc:

Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                                  Version                 Architecture            Description
+++-=====================================-=======================-=======================-===============================================================================
ii  fizsh                                 1.0.7-1                 all                     Friendly Interactive ZSHell
ii  zsh-syntax-highlighting               0.5.0-1                 all                     Fish shell like syntax highlighting for zsh
debsums: missing file /etc/fizsh/modify-etc-shells.zsh (from fizsh package)

Packages which provide vendor completions:

Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                                  Version                 Architecture            Description
+++-=====================================-=======================-=======================-===============================================================================
ii  curl                                  7.51.0-1                amd64                   command line tool for transferring data with URL syntax
ii  git-buildpackage                      0.8.6                   all                     Suite to help with Debian packages in Git repositories
ii  mpv                                   0.21.0-2                amd64                   video player based on MPlayer/mplayer2
ii  pass                                  1.6.5-3                 all                     lightweight directory-based password manager
ii  pdfgrep                               1.4.1-2                 amd64                   search in pdf files for strings matching a regular expression
ii  pulseaudio                            9.0-5                   amd64                   PulseAudio sound server
ii  sysdig                                0.9.0-1                 amd64                   system-level exploration and troubleshooting tool
ii  systemd                               232-3                   amd64                   system and service manager
ii  systemd-container                     232-3                   amd64                   systemd container/nspawn tools
ii  udev                                  232-3                   amd64                   /dev/ and hotplug management daemon
ii  vlc-bin                               2.2.4-8                 amd64                   binaries from VLC

The following files were modified:

/etc/systemd/resolved.conf
/etc/pulse/daemon.conf

dpkg-query: no path found matching pattern /usr/share/zsh/vendor-functions/


-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (200, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.8.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages zsh depends on:
ii  dpkg        1.18.15
ii  libc6       2.24-5
ii  libcap2     1:2.25-1
ii  libtinfo5   6.0+20160917-1
ii  zsh-common  5.2-5

Versions of packages zsh recommends:
ii  libc6         2.24-5
ii  libncursesw5  6.0+20160917-1
ii  libpcre3      2:8.39-2

Versions of packages zsh suggests:
pn  zsh-doc  <none>

-- no debconf information



More information about the Pkg-zsh-devel mailing list