Post AXd8PROjMszYTb3C0u by pry@raru.re
 (DIR) More posts by pry@raru.re
 (DIR) Post #AXcxCwh0bXhyH7RHuq by pry@raru.re
       2023-07-12T19:04:29Z
       
       1 likes, 1 repeats
       
       oh my god shell script is the ugliest fucking thingthe way you end a case statement is "esac" ???CASE BACKWARDS???WHY if and fi SUCKS SO MUCH, like literally this is so dumb
       
 (DIR) Post #AXcxWP3NNsBTjjBBDM by errante@rot.gives
       2023-07-12T19:07:58.442262Z
       
       0 likes, 0 repeats
       
       @pry its taken from algol
       
 (DIR) Post #AXcxfjR6yEbjYijISO by errante@rot.gives
       2023-07-12T19:09:43.843179Z
       
       0 likes, 0 repeats
       
       @pry the creator of it liked ALGOLunix couldnt run an ALGOL compilerALGOL was viewed by many to be the best/future language at the timehttps://www.tuhs.org/cgi-bin/utree.pl?file=V7/usr/src/cmd/sh/main.cthe C was written like ALGOL
       
 (DIR) Post #AXcyTxCa43GijPsf8i by Anniiii@gts.ferreo.dev
       2023-07-12T19:18:46Z
       
       0 likes, 0 repeats
       
       @pry you're right. They made a bad decison, it CLEARLY should be:SELECT CASE (THING)CASE (SOME_OPTION)! somethingCASE (OTHER_OPTION)! other thingEND SELECTand:IF (THING) THEN! somethingELSE! other thingEND IFthough ideally make it case sensitive, that's the one thing where fortran failed, non-capslock keywords should not exist hehe
       
 (DIR) Post #AXd4iZE85J3uRWxMQK by mousefriend@this.mouse.rocks
       2023-07-12T20:28:39Z
       
       0 likes, 0 repeats
       
       @pry Like, we see what they were going for, but on the other hand: absolutely not, that is a terrible design choice.
       
 (DIR) Post #AXd5fGVJL62HSbyxvM by scarlett@enby.site
       2023-07-12T19:05:47.900Z
       
       0 likes, 0 repeats
       
       @pry@raru.re on the other hand i think it's actually quite silly and even a little bit funny
       
 (DIR) Post #AXd5fHCYkId9ckDVKq by pry@raru.re
       2023-07-12T20:39:16Z
       
       0 likes, 0 repeats
       
       @scarlett thats definitely fair. like i feel like id see this in a joke lang..idk was at work and like looking at some scripts and almost had an aneurysm
       
 (DIR) Post #AXd5fudW80Mpve85Gi by chozu@fedi.absturztau.be
       2023-07-12T19:07:13.026093Z
       
       0 likes, 0 repeats
       
       @pry should have been cone, rhyming with done
       
 (DIR) Post #AXd5fvVksLkidrVOoC by pry@raru.re
       2023-07-12T20:39:25Z
       
       0 likes, 0 repeats
       
       @chozu LOL
       
 (DIR) Post #AXd5hVhVoDO3AhlAjw by pry@raru.re
       2023-07-12T20:39:39Z
       
       0 likes, 0 repeats
       
       @steffo yea, im sure its for some weird reasons but like its so bad
       
 (DIR) Post #AXd5lh7LIuwTjopxSa by pry@raru.re
       2023-07-12T20:40:27Z
       
       1 likes, 0 repeats
       
       @Anniiii yea thats beginning to look like Pascal and i rlly dont mind pascal's syntax, i think it looks decent
       
 (DIR) Post #AXd5pz8GGdjIlhJRp2 by pry@raru.re
       2023-07-12T20:40:51Z
       
       0 likes, 0 repeats
       
       @vv LOL, ok u found the correct answer, all the other answers are wrong
       
 (DIR) Post #AXd5rpyfH9NsxEhuKW by pry@raru.re
       2023-07-12T20:41:35Z
       
       0 likes, 0 repeats
       
       @mousefriend yea same... weird cuz if and fi look more natural to me but just seeing esac made me unnaturally mad
       
 (DIR) Post #AXd68aFuyvwl7KlLKi by mousefriend@this.mouse.rocks
       2023-07-12T20:44:32Z
       
       0 likes, 0 repeats
       
       @pry As someone who can read forwards and backwards with equal ease (and sometimes forgets which direction they're writing/reading in) "if" and "fi" would cause us so many problems. 😭😭😭
       
 (DIR) Post #AXd6Sm5EiTJpalOUVM by pry@raru.re
       2023-07-12T20:48:12Z
       
       0 likes, 0 repeats
       
       @mousefriend oh wow yea, i cant rlly easily tell with a word as long as case an so every time id want to close a case statement id have to spell it out in my head really slowly backwards.
       
 (DIR) Post #AXd74uWFnhZsl8DRp2 by Vierkantor@mastodon.vierkantor.com
       2023-07-12T20:55:06Z
       
       0 likes, 0 repeats
       
       @pry my favourite is one that I found in some paper: procedure foo ... erudecorp
       
 (DIR) Post #AXd7DW2cB9A9RqSJlI by Zeno@fosstodon.org
       2023-07-12T20:56:38Z
       
       0 likes, 0 repeats
       
       @pry BEHOLD, my 130 line bash script, that generates a "wiki" from a folder of markdown files^^I love bash scripting. While yes, the "language" sucks and there are so many weird cases, the barrier to entry is so low and it makes it incredibly easy to compose tools together to do quite powerful stuff in a really short time.
       
 (DIR) Post #AXd7EiQbbsK49gFWQi by pry@raru.re
       2023-07-12T20:56:54Z
       
       0 likes, 0 repeats
       
       @Vierkantor THE erude CORPORATION :O
       
 (DIR) Post #AXd7ZjWKkA7lclwzlA by pry@raru.re
       2023-07-12T21:00:28Z
       
       0 likes, 0 repeats
       
       @Zeno i think if id ever have to write something like that and i had a choice about what to use, id probably use something like https://github.com/tomerfiliba/plumbum(if on a modern environment... am doing shell scripting bc embedded linux)
       
 (DIR) Post #AXd7quwNXMlJxxKKiO by scathach@stereophonic.space
       2023-07-12T21:01:31.317949Z
       
       0 likes, 0 repeats
       
       @pry so sad that they don't do for rof and while elihw
       
 (DIR) Post #AXd8PROjMszYTb3C0u by pry@raru.re
       2023-07-12T21:10:01Z
       
       0 likes, 0 repeats
       
       @scathach lmaoooyea smh, be consistent!!
       
 (DIR) Post #AXdCO2f0FvSrHVFZWS by amiloradovsky@stereophonic.space
       2023-07-12T21:54:38.764981Z
       
       0 likes, 0 repeats
       
       @pry only bash, (t)csh uses endif and endsw for these (https://linux.die.net/man/1/tcsh), generally (t)csh is way more elegantalso if only it was just the keywords that's problematic about the shell scripts...
       
 (DIR) Post #AXdFJzBdWpwlDDGuRc by Zeno@fosstodon.org
       2023-07-12T22:27:28Z
       
       0 likes, 0 repeats
       
       @pry First look, this seems a lot more complicated^^