Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

TRAPINT doesn't work reliably



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