zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@zsh.org
Subject: Re: SIGINT/TRAPINT Behaves Differently in 4.3.11
Date: Sun, 02 Oct 2011 10:04:23 -0700	[thread overview]
Message-ID: <111002100423.ZM32421@torch.brasslantern.com> (raw)
In-Reply-To: <CA+mcLN5ctrYhNpwqzi+qiZ4yoTpqY2n_A8MBUAsgeLYTm5XSpA@mail.gmail.com>

On Oct 2, 12:23pm, Julien Nicoulaud wrote:
>
>     TRAPINT () {
>   zle && print -s -- $BUFFER
>   return $1
> }
> 
> Since 4.3.11, the following sequence gets the shell stuck with a
> "TRAPINT:1: command not found: -s" error message:
>  - Type something
>  - Call _complete_help
>  - <Ctrl><C>

Doe you imply here that _complete_help is taking a long time to run for
some reason and you therefore interrupt it?  I tried simulating that by
inserting a "sleep" into the _complete_help function ... interrupting
_complete_help results in the command line not being redrawn, but it
doesn't hang or give an error.

Or is it that you interrupt at the command line after _complete_help
finishes?  That works for me (though there may be a better way to
accomplish it now that the ZLE_LINE_ABORTED parameter can be used).

The error message seems to mean that you've somehow made the word "print"
disappear, e.g., you've got an alias for it that was defined before the
TRAPINT was defined.


      reply	other threads:[~2011-10-02 17:04 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-16  2:35 sorin.ionescu
2011-09-16 17:17 ` Bart Schaefer
2011-09-25 22:31   ` Bart Schaefer
2011-10-01 19:14     ` Peter Stephenson
2011-10-02 10:23       ` Julien Nicoulaud
2011-10-02 17:04         ` Bart Schaefer [this message]

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=111002100423.ZM32421@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-workers@zsh.org \
    /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).