bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Debian bug #929178: wrong trap displayed inside functions


From: Oğuz
Subject: Debian bug #929178: wrong trap displayed inside functions
Date: Mon, 25 Mar 2024 18:12:02 +0200

On Monday, March 25, 2024, Gioele Barabucci <gioele@svario.it> wrote:
>
> If a function does not set a trap, `trap` will output the command set by
> the caller. This is just a cosmetic issue, the right trap will be run at
> runtime.
>

Doesn't POSIX allow this? How else do you propose we save the trap set for
an event into a variable if `x=$(trap)' stops working?


-- 
Oğuz


reply via email to

[Prev in Thread] Current Thread [Next in Thread]