Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
TRAPINT doesn't work reliably
- X-seq: zsh-users 24247
- From: Dennis Schwartz <dennis.schwartz@xxxxxxxxxxxxxx>
- To: "zsh-users@xxxxxxx" <zsh-users@xxxxxxx>
- Subject: TRAPINT doesn't work reliably
- 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=
- Feedback-id: 9o-Cl1kmi7SjXhHVTYCKLMaOWEb5sehZHGWJCh5kD69wcWVVeOfY5BYq3wMUF0ymJu-oBC8u1h80JJ91GEz6Og==:Ext:ProtonMail
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- Reply-to: Dennis Schwartz <dennis.schwartz@xxxxxxxxxxxxxx>
Hi,
I have a function on TRAPINT in my .zshrc like described as in the Zsh manual [1].
TRAPINT() {
echo "trap: $1"
return $(( 128 + $1 ))
}
This works unreliably. Usually this works a first few times, but after a while this doesn’t 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 encounter this issue in 5.7.1.
Is this a regression that might have been introduced, or is there maybe something else wrong in my (other) configuration?
Thanks,
Dennis
[1] http://zsh.sourceforge.net/Doc/Release/Functions.html#index-trapping-signals
Messages sorted by:
Reverse Date,
Date,
Thread,
Author