Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: TRAPINT doesn't work reliably
- X-seq: zsh-users 24283
- From: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- To: <zsh-users@xxxxxxx>
- Subject: Re: TRAPINT doesn't work reliably
- Date: Tue, 24 Sep 2019 09:44:23 +0100
- Cc: Dennis Schwartz <dennis.schwartz@xxxxxxxxxxxxxx>
- Cms-type: 201P
- Dkim-filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20190924084425euoutp0136caa2884d3bd949743b85d81189574d~HU1_P3OcG2862128621euoutp01a
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1569314665; bh=cf4kr1+0QjsbcPkMPtTcQjtSKylANXtirvq9U+5leAQ=; h=Subject:From:To:CC:Date:In-Reply-To:References:From; b=JPI3B3nUXspKJppoD/pe7SFzrxVv3kT7Raij49Rn4qFTIsDVjHyXLJO1LZVMAt8YV Ky1lwHFypO53Rm88wt+RwLyroUlYqyAEJEEi4baHxGjrRSUSvKdzj5YmxQA3jh5+UD uxG/xiakE5oMg3nPg5xC7Tb6rh9CeYdqooJVdEHM=
- In-reply-to: <XwKNAg1qGlWEVe6teZMU0FhD554sBKMAVDblWDoIFxZeOktj1B6qY4Jl7BESBBQFtRKy8SeAa7UzBcB5vShOqFQTgNcZoWShxyjeLaLrCKI=@protonmail.com>
- 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
- References: <CGME20190917164905epcas1p4ad458ffcd504501780d522880c81de3e@epcas1p4.samsung.com> <XwKNAg1qGlWEVe6teZMU0FhD554sBKMAVDblWDoIFxZeOktj1B6qY4Jl7BESBBQFtRKy8SeAa7UzBcB5vShOqFQTgNcZoWShxyjeLaLrCKI=@protonmail.com>
On Tue, 2019-09-17 at 16:47 +0000, Dennis Schwartz wrote:
> 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 certainly isn't likely to be anything you've done wrong, at least based on
what you've told us.
It smells of memory management problems, but it's hard to see where the corruption
would be.
What do you see if you run
functions TRAPINT
after the problem has turned up?
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author