zsh-workers
 help / color / mirror / code / Atom feed
From: Zefram <zefram@fysh.org>
To: Peter Stephenson <pws@csr.com>
Cc: zsh-workers@sunsite.dk
Subject: Re: Bug#190948: Violation against The Single UNIX ? Specification, Version 2
Date: Wed, 14 May 2003 13:57:35 +0100	[thread overview]
Message-ID: <20030514125734.GE29742@fysh.org> (raw)
In-Reply-To: <21466.1052916035@csr.com>

Peter Stephenson wrote:
>Exactly, it's completely meaningless in zsh.  It is ridiculous for the
>standard to specify how the shell handles line editing,

Yet the standard does.  A vi command line editing mode is defined
by POSIX.  An Emacs mode would also have been in the standard, but the
committee couldn't reach agreement on the details.  (ISTR seeing RMS
named in the credits, I wonder what really went on.)  I think Zle's vi
mode behaviour is incompatible with POSIX on some points, but I really
don't care, because we did better there.

I think we should, at least, arrange that "set -o vi" in an interactive
zsh with zle loaded has the effect of "bindkey -v".  That perserves
the intent of the standard -- that "set -o vi" is the portable way for
a user to select vi-style command line editing -- and we don't have to
go ridiculously out of our way to achieve it.

I suggest having a hook to execute on "set -o vi"; Zle would hook this
when it is loaded, just like the other things it already hooks.  To be
nice to everyone that knows that, despite POSIX, interactive shells do
actually have an Emacs mode too, it would be good to hook "set -o emacs"
as well.  Only these two are required.

-zefram


  reply	other threads:[~2003-05-14 12:57 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20030427130703.GB12714@verso.st.jyu.fi>
2003-05-14 11:07 ` Bug#190948: Violation against The Single UNIX ® " Oliver Kiddle
2003-05-14 11:46   ` Bug#190948: Violation against The Single UNIX R " Borzenkov Andrey
2003-05-14 12:40   ` Bug#190948: Violation against The Single UNIX ® " Peter Stephenson
2003-05-14 12:57     ` Zefram [this message]
2003-05-14 14:14       ` Bug#190948: Violation against The Single UNIX ? " Peter Stephenson
2003-05-14 14:20         ` Peter Stephenson
2003-05-15  9:17         ` Peter Stephenson
2003-05-15  9:37           ` Zefram
2003-05-15  9:49             ` Peter Stephenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030514125734.GE29742@fysh.org \
    --to=zefram@fysh.org \
    --cc=pws@csr.com \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

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).