From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 83be639b for ; Tue, 17 Sep 2019 16:48:36 +0000 (UTC) Received: (qmail 13574 invoked by alias); 17 Sep 2019 16:48:28 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 24247 Received: (qmail 7604 invoked by uid 1010); 17 Sep 2019 16:48:28 -0000 X-Qmail-Scanner-Diagnostics: from mail-40136.protonmail.ch by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.101.2/25573. spamassassin: 3.4.2. Clear:RC:0(185.70.40.136):SA:0(-2.7/5.0):. Processed in 0.912763 secs); 17 Sep 2019 16:48:28 -0000 X-Envelope-From: dennis.schwartz@protonmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.protonmail.ch designates 185.70.40.136 as permitted sender) Date: Tue, 17 Sep 2019 16:47:43 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=default; t=1568738870; bh=LvU4FqQX4oR8aCNs9M/XWFH2pNGnf7F90oZyc0/J/Uw=; h=Date:To:From:Reply-To:Subject:Feedback-ID:From; b=ihEInyktfy9gvNXK1pG0V9NBGYMaBP18tmAfi7WQF/TQ7VB6XSkF0dfldip8MhgBN TKbssfpDeXjmfqQPaCqR3bWQxjgbCGfnwGEnW73NuGTKTXP8OfkrkRjYsO84cmGmei a1bx2osUKVodgkmm+OIh6AbdOK2YvzZtHS0o3aZA= To: "zsh-users@zsh.org" From: Dennis Schwartz Reply-To: Dennis Schwartz Subject: TRAPINT doesn't work reliably Message-ID: Feedback-ID: 9o-Cl1kmi7SjXhHVTYCKLMaOWEb5sehZHGWJCh5kD69wcWVVeOfY5BYq3wMUF0ymJu-oBC8u1h80JJ91GEz6Og==:Ext:ProtonMail MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, I have a function on TRAPINT in my .zshrc like described as in the Zsh manu= al [1]. TRAPINT() { echo "trap: $1" return $(( 128 + $1 )) } This works unreliably. Usually this works a first few times, but after a wh= ile this doesn=E2=80=99t work anymore and throws the following error. TRAPINT:1: command not found: \M-^A^A TRAPINT:2: command not found: F^\V This command used to work flawlessly in Zsh 5.3.1 (Debian strech). I only e= ncounter this issue in 5.7.1. Is this a regression that might have been introduced, or is there maybe som= ething else wrong in my (other) configuration? Thanks, Dennis [1] http://zsh.sourceforge.net/Doc/Release/Functions.html#index-trapping-si= gnals