Justine Smithies on Nostr: Exploring /bin/sh on #FreeBSD and I discover that arrays are not a thing. So doing ...
Exploring /bin/sh on #FreeBSD and I discover that arrays are not a thing. So doing something like this ic=(0 1 2 3 4 5 6 7 8 9) as it is in my bash workspace script doesn't work in /bin/sh. But I can get around it by doing this set "0" "1" "2" "3" "4" "5" "6" "7" "8" "9" then I can just call up a value like echo $4 which would return 3.
Exciting stuff learning how to work around features or less features. Time to read up some more. 😆
Published at
2024-12-15 20:30:43Event JSON
{
"id": "ef4187dc1b35d74f9fd214909611df61b8827ed58fe93a0ee66d4c667b269af5",
"pubkey": "76a830addb47903a3c8093772cd4b03d936ae4b4bb80810d42005249c84b517e",
"created_at": 1734294643,
"kind": 1,
"tags": [
[
"t",
"freebsd"
],
[
"proxy",
"https://snac.smithies.me.uk/justine/p/1734294643.032511",
"activitypub"
]
],
"content": "Exploring /bin/sh on #FreeBSD and I discover that arrays are not a thing. So doing something like this ic=(0 1 2 3 4 5 6 7 8 9) as it is in my bash workspace script doesn't work in /bin/sh. But I can get around it by doing this set \"0\" \"1\" \"2\" \"3\" \"4\" \"5\" \"6\" \"7\" \"8\" \"9\" then I can just call up a value like echo $4 which would return 3.\nExciting stuff learning how to work around features or less features. Time to read up some more. 😆\n",
"sig": "bfc4d5b512a201035a088129b22b4d1485e6b3f6f31b8871aabc4229dc234751ce720d6c6357e026d7f05abfb35de802d826e3fdcf1c29dab1fb2fb3c9eb3454"
}