zsh-workers
 help / color / mirror / code / Atom feed
* Weird bug with "bindkey" in a function
@ 1998-03-24 17:19 Bart Schaefer
  1998-03-24 18:03 ` Andrew Main
  1998-03-25  9:23 ` PATCH: 3.1 Re: Weird bug with "bindkey" Peter Stephenson
  0 siblings, 2 replies; 4+ messages in thread
From: Bart Schaefer @ 1998-03-24 17:19 UTC (permalink / raw)
  To: zsh-workers

I was playing around with something and wrote the following little
function:

bindfoo () {
        bindkey -v
        bindkey "[A" up-line-or-history
        bindkey "[B" down-line-or-history
        bindkey "[C" forward-char
        bindkey "[D" backward-char
        bindkey -r '\e[A'
        bindkey -r '\e[B'
        bindkey -r '\e[C'
        bindkey -r '\e[D'
        bindkey
        bindkey -e
}

The weird thing is, if any of the "bindkey" commands in that function fails
(e.g. with "bindkey: in-string is not bound") then the ENTIRE FUNCTION exits.

What the devil is up with that?

zsh 3.0.5

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com


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

end of thread, other threads:[~1998-03-25  9:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-03-24 17:19 Weird bug with "bindkey" in a function Bart Schaefer
1998-03-24 18:03 ` Andrew Main
1998-03-25  9:23 ` PATCH: 3.1 Re: Weird bug with "bindkey" Peter Stephenson
1998-03-25  9:45   ` PATCH: 3.0.5 " Peter Stephenson

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