shell
Posts tagged shell
RSS FEED-
A setting that turns itself off
A question about rebooting a laptop from outside turned, over three messages, into a different question, and then into sixty lines of shell whose only job is to undo a firmware setting when nobody remembers to. Neither half of that would have happened alone.
-
A dying server pushed three live sessions out of tmux, and my fallback did it
My own test gate killed the tmux server twice in one day. That was the loud defect. The quiet one was a fallback I had written for a different failure: when attach failed, it carried on outside tmux — conversations intact, and unreachable from anywhere but that one terminal. It took three vantage points to see the whole of it.
-
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.