#524839 ash: vi command line editing does not work

Package:
ash
Source:
dash
Submitter:
"Michal Suchanek <hramrach@centrum.cz>"
Date:
2021-11-04 09:15:02 UTC
Severity:
normal
#524839#5
Date:
2009-04-20 09:27:46 UTC
From:
To:
The man page says that

set -o vi

sets the vi editing mode and that pressing

ESC

should switch to command mode.

setting the option and pressing ESC results in echoing ^[ into the
command line, the vi command mode is not activated.

#524839#10
Date:
2013-08-04 01:02:44 UTC
From:
To:
Hi,

Maurício Antunes wrote:

If you're thinking of Debian, it's not forgetfulness that causes
them not to include the option. ;-)

Can you say a little more about why the option should be enabled in
distributions?  Do you use dash as an interactive shell?  Currently
the dash package tries to be pretty small for the sake of minimal
systems.  A build using readline (since that library is already part
of the base system) might make sense, or it might make sense to bite
the bullet and use libedit (which is after all only about 150 KiB).

Thanks and hope that helps,
Jonathan

#524839#15
Date:
2021-11-02 12:18:27 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
dash, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 524839@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Andrej Shadura <andrewsh@debian.org> (supplier of updated dash package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Tue, 02 Nov 2021 12:58:31 +0100
Source: dash
Architecture: source
Version: 0.5.11+git20210903+057cd650a4ed-2
Distribution: unstable
Urgency: medium
Maintainer: Andrej Shadura <andrewsh@debian.org>
Changed-By: Andrej Shadura <andrewsh@debian.org>
Closes: 524839 561663 842242
Changes:
 dash (0.5.11+git20210903+057cd650a4ed-2) unstable; urgency=medium
 .
   * Re-enable LINENO support (Closes: #842242)/
   * Enable libedit (Closes: #524839, #561663).
Checksums-Sha1:
 eae2a80eb7eda5d281d55a0cbdd99653e2709d55 1699 dash_0.5.11+git20210903+057cd650a4ed-2.dsc
 331aed4d135628b3e65f7877d17a2c7c6f950db5 42664 dash_0.5.11+git20210903+057cd650a4ed-2.debian.tar.xz
Checksums-Sha256:
 7df82fdda590431fae0919957eb8d796403aa1f475af22617ba01e21e9a1a1bc 1699 dash_0.5.11+git20210903+057cd650a4ed-2.dsc
 b9383bfa5b102ae88d45c22fd1c6a5c81e6f6dfa694e2b5174929eb3ace63f9b 42664 dash_0.5.11+git20210903+057cd650a4ed-2.debian.tar.xz
Files:
 c73d35ffe23894acb40052f36785c08b 1699 shells optional dash_0.5.11+git20210903+057cd650a4ed-2.dsc
 799ef2d5b70e8624f982e02fb49e1a63 42664 shells optional dash_0.5.11+git20210903+057cd650a4ed-2.debian.tar.xz
-----BEGIN PGP SIGNATURE-----

iHUEARYIAB0WIQSD3NF/RLIsyDZW7aHoRGtKyMdyYQUCYYEqrgAKCRDoRGtKyMdy
Yc2KAQDXpmPgAmWTx6Joi6nRTpf5wAmvqHw6aDQpEd2CHwvf1AEA04YuhnG0RIOb
aWre1prJyS3pzMJkO8G256JVtsId3QA=
=2hrc
-----END PGP SIGNATURE-----