Nathan Manceaux-Panot on Nostr: Just discovered in amazement that in Bash scripts, any variable named `SECONDS` will ...
Just discovered in amazement that in Bash scripts, any variable named `SECONDS` will automatically increment every second. Bash is bonkers
Published at
2024-07-25 18:01:04Event JSON
{
"id": "9c82a675c666c80d419da3ba9d480f26172f0667f99b9167ba0be5ebb052e960",
"pubkey": "f6f604dd7b7939817b361a906235306280a1cae40666b97712da41e759738198",
"created_at": 1721930464,
"kind": 1,
"tags": [
[
"proxy",
"https://mas.to/users/Cykelero/statuses/112848434903950888",
"activitypub"
]
],
"content": "Just discovered in amazement that in Bash scripts, any variable named `SECONDS` will automatically increment every second. Bash is bonkers",
"sig": "2828ef4656c018b1bc9498e2e3de6ba19176442eb6f8199ae2c0e275667e02ed341263436fca845d4d8dce9c3821d04a6715484d9f6e5d98d58fbef09002ef63"
}