broke my own rule of not creating new bash scripts and instantly regretting it.
-
@hbons I once wrote a single line nested if - elif - else script for my custom zed coderunner.
And now, a month later, I'm using the editor for my project, and every time I look into the script, I'm like "WTF! why?".
You've to see it to understand the insanity.
Proton Drive
Securely store, share, and access your important files and photos. Anytime, anywhere.
(drive.proton.me)
@theakashmondal wow.
-
@ednl the icon brings back memories.
@hbons Only sweet ones, I'm sure

-
@hbons Only sweet ones, I'm sure

@ednl it was in Windows 95 which was great. never used it though. only Paint.

-
broke my own rule of not creating new bash scripts and instantly regretting it.
spending more time debugging the script than I was supposed to save creating a release... just going to write up the steps in a text file.
doing fast frictionless releases is dangerous anyway. it's good to slow down.
@hbons We need a more modern scripting language to be (pretty much) universal on *nix systems.
Heck, Rexx is /old/, but it's still modern, sleek and shiny compared with bash script!
-
@ednl the icon brings back memories.
-
@hbons We need a more modern scripting language to be (pretty much) universal on *nix systems.
Heck, Rexx is /old/, but it's still modern, sleek and shiny compared with bash script!
@RupertReynolds never heard of it. I need to check that out.
-
broke my own rule of not creating new bash scripts and instantly regretting it.
spending more time debugging the script than I was supposed to save creating a release... just going to write up the steps in a text file.
doing fast frictionless releases is dangerous anyway. it's good to slow down.
much better!

Bobby/build-aux/release-steps.md at main Β· hbons/Bobby
Browse SQLite files. Contribute to hbons/Bobby development by creating an account on GitHub.
GitHub (github.com)
-
@RupertReynolds never heard of it. I need to check that out.
@hbons
Here's one I prepared earlier:-#!/bin/regina
SIGNAL ON NOVALUEsay "Hello, world!"
say "Hello," "world!" /* n.b. inserts space by default */
Say "Hello," || "world" /* no space inserted */
say "5! is" factorial(5)
Exit 0factorial: procedure /* procedure affects scoping and allows recursion */
n = arg(1)
If n <= 2 then,
Return n
Return (n * factorial(n-1)) -
@hbons
Here's one I prepared earlier:-#!/bin/regina
SIGNAL ON NOVALUEsay "Hello, world!"
say "Hello," "world!" /* n.b. inserts space by default */
Say "Hello," || "world" /* no space inserted */
say "5! is" factorial(5)
Exit 0factorial: procedure /* procedure affects scoping and allows recursion */
n = arg(1)
If n <= 2 then,
Return n
Return (n * factorial(n-1))@hbons p.s. Rexx strings are 8-bit friendly. You only need to worry about nulls and backslashes when the strings hit the shell.
-
much better!

Bobby/build-aux/release-steps.md at main Β· hbons/Bobby
Browse SQLite files. Contribute to hbons/Bobby development by creating an account on GitHub.
GitHub (github.com)
@hbons it's beautiful!
-
R relay@relay.mycrowd.ca shared this topic