bug-bash
[Top][All Lists]
Advanced

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

A defer command as a bash loadable builtin


From: Léa Gris
Subject: A defer command as a bash loadable builtin
Date: Mon, 22 Jun 2026 15:24:07 +0200
User-agent: Betterbird (Linux)

I implemented defer as a bash loadable builtin.

It is a wrapper over the trap builtin that chains handlers on signals instead of replacing them (LIFO order):

https://github.com/leagris/bash-loadable-defer

Posting here in case it is of interest or worth considering as a core builtin feature.

--
Léa Gris


reply via email to

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