shell
Tagged #shell
RSS FEED-
Your cleanup handler did not run, and you will never be told
An EXIT trap restored something important. Closing the terminal window sent SIGHUP, which terminates without running EXIT traps, and the important thing stayed lost. The fix was not a bigger trap — it was to stop treating cleanup as the place correctness lives.
-
Never judge a headless AI run by its exit code
An agent that hit its usage limit and wrote nothing still exits 0. So you check the file instead — and then a stale file, and an empty file, both lie to you too. Three versions of the same bug, and the rule that finally held.