Rob Landley on Nostr: The shell "trap" builtin isn't registering a function, it's a delayed "eval". (Not ...
The shell "trap" builtin isn't registering a function, it's a delayed "eval".
(Not many of you are currently writing your own bash replacement shell, so this observation is presumably of limited utility, but it's a thing I need to remember for morning.)
Published at
2024-05-21 08:20:13Event JSON
{
"id": "74494d9aa943c92847909a690605e3e1abd56840be95f3cede65383988a7340e",
"pubkey": "f0101433dd98a45b75721b1cc8086e5d4ec619e5dd27822a94f6b483d3b07bfb",
"created_at": 1716279613,
"kind": 1,
"tags": [
[
"proxy",
"https://mstdn.jp/users/landley/statuses/112478100762290922",
"activitypub"
]
],
"content": "The shell \"trap\" builtin isn't registering a function, it's a delayed \"eval\".\n\n(Not many of you are currently writing your own bash replacement shell, so this observation is presumably of limited utility, but it's a thing I need to remember for morning.)",
"sig": "00edf7b802fc1a38dc6ced833b3d4103a631d8e4a0318e01b8de61297f9167599826cc8a19619bb85fad132d9f1ec52dcc62ba1329cae963d4f49c8610be74b4"
}