R. L. Dane :debian: :openbsd:🧉 on Nostr: Should I be (terr,horr)ified that bash lets you modify index registers mid-flight? ...
Should I be (terr,horr)ified that bash lets you modify index registers mid-flight? 😆
```
for x in 2 4 8 16 32
do
((x<10)) && x=" $x"
echo "$x"
done
```
Output:
```
2
4
8
16
32
```
Published at
2023-09-06 14:14:25Event JSON
{
"id": "9567d43b88820ff9de4b03c80d3e5d1ea31b99a27bb948febf6f03f1a6dbb922",
"pubkey": "c95a71dfb95245bfb233a5ccea6dbcb03adda051221413144a54a206165aa52f",
"created_at": 1694009665,
"kind": 1,
"tags": [
[
"proxy",
"https://fosstodon.org/users/RL_Dane/statuses/111018617423271451",
"activitypub"
]
],
"content": "Should I be (terr,horr)ified that bash lets you modify index registers mid-flight? 😆\n\n```\nfor x in 2 4 8 16 32\ndo\n ((x\u003c10)) \u0026\u0026 x=\" $x\"\n echo \"$x\"\ndone\n```\n\nOutput:\n```\n 2\n 4\n 8\n16\n32\n```",
"sig": "780a3411209d391895c3b32dc979521583f6d82ffa2cb2715a2a4a5ac8e264523357c8f882b5af7d1d173d5fda247658ebe7e34061a35245a97f7b544acb6a61"
}