dash.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* set -o vi
@ 2011-08-21 16:01 Paul Gilmartin
  2011-08-22  8:45 ` Petr Sabata
  0 siblings, 1 reply; 2+ messages in thread
From: Paul Gilmartin @ 2011-08-21 16:01 UTC (permalink / raw)
  To: dash

(Damn! I clicked the wrong link in the confirmation notice.
Apologies.)

For some time now, on both Ubuntu and Cygwin, "set -o vi"
is ineffective.

The command is accepted and a query indicates it's in effect:

\! $ uname -a
Linux Linux-Mac 2.6.38-11-generic #48-Ubuntu SMP Fri Jul 29 19:05:14 UTC 2011 i686 i686 i386 GNU/Linux
\! $ set -o vi
\! $ set -o
Current option settings
    ...
vi              on
emacs           off
    ...

But when I press ESC to enter command history, it simply
echoes the ESC as "^[" and calls the next command illegal:

\! $ ^[
dash:  not found

Thanks,
gil


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: set -o vi
  2011-08-21 16:01 set -o vi Paul Gilmartin
@ 2011-08-22  8:45 ` Petr Sabata
  0 siblings, 0 replies; 2+ messages in thread
From: Petr Sabata @ 2011-08-22  8:45 UTC (permalink / raw)
  To: dash

[-- Attachment #1: Type: text/plain, Size: 859 bytes --]

On Sun, Aug 21, 2011 at 10:01:24AM -0600, Paul Gilmartin wrote:
> (Damn! I clicked the wrong link in the confirmation notice.
> Apologies.)
> 
> For some time now, on both Ubuntu and Cygwin, "set -o vi"
> is ineffective.
> 
> The command is accepted and a query indicates it's in effect:
> 
> \! $ uname -a
> Linux Linux-Mac 2.6.38-11-generic #48-Ubuntu SMP Fri Jul 29 19:05:14 UTC 2011 i686 i686 i386 GNU/Linux
> \! $ set -o vi
> \! $ set -o
> Current option settings
>     ...
> vi              on
> emacs           off
>     ...
> 
> But when I press ESC to enter command history, it simply
> echoes the ESC as "^[" and calls the next command illegal:
> 
> \! $ ^[
> dash:  not found
> 
> Thanks,
> gil

I think this requires dash to be built with libedit support to work.
Check your packages.

Regards,
-- 
# Petr Sabata

[-- Attachment #2: Type: application/pgp-signature, Size: 230 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-08-22  8:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-21 16:01 set -o vi Paul Gilmartin
2011-08-22  8:45 ` Petr Sabata

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).