Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Cyborg)
  • No Skin
Collapse
Brand Logo

CIRCLE WITH A DOT

  1. Home
  2. Uncategorized
  3. broke my own rule of not creating new bash scripts and instantly regretting it.

broke my own rule of not creating new bash scripts and instantly regretting it.

Scheduled Pinned Locked Moved Uncategorized
softwaredevelopment
14 Posts 5 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ednl@mastodon.socialE ednl@mastodon.social

    @hbons This means ...... you're not writing enough bash scripts. You were just out of practice. C'mon, embrace the archaic scripting language that's twice your age!!

    My first shell was MS-DOS. Then I got a unix account at uni and was dumped into sh. I figured out: hey I can switch shells, and then for years, for no reason at all, I used (t)csh. Felt more programmy! Maybe try that? πŸ˜‰

    (Don't!)

    hbons@mastodon.socialH This user is from outside of this forum
    hbons@mastodon.socialH This user is from outside of this forum
    hbons@mastodon.social
    wrote last edited by
    #4

    @ednl the icon brings back memories.

    ednl@mastodon.socialE rupertreynolds@hachyderm.ioR 2 Replies Last reply
    0
    • theakashmondal@mstdn.socialT theakashmondal@mstdn.social

      @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.

      Link Preview Image
      Proton Drive

      Securely store, share, and access your important files and photos. Anytime, anywhere.

      favicon

      (drive.proton.me)

      #Zed #ZedEditor #Software #Development #Bash

      hbons@mastodon.socialH This user is from outside of this forum
      hbons@mastodon.socialH This user is from outside of this forum
      hbons@mastodon.social
      wrote last edited by
      #5

      @theakashmondal wow.

      1 Reply Last reply
      0
      • hbons@mastodon.socialH hbons@mastodon.social

        @ednl the icon brings back memories.

        ednl@mastodon.socialE This user is from outside of this forum
        ednl@mastodon.socialE This user is from outside of this forum
        ednl@mastodon.social
        wrote last edited by
        #6

        @hbons Only sweet ones, I'm sure 😍

        hbons@mastodon.socialH 1 Reply Last reply
        0
        • ednl@mastodon.socialE ednl@mastodon.social

          @hbons Only sweet ones, I'm sure 😍

          hbons@mastodon.socialH This user is from outside of this forum
          hbons@mastodon.socialH This user is from outside of this forum
          hbons@mastodon.social
          wrote last edited by
          #7

          @ednl it was in Windows 95 which was great. never used it though. only Paint. πŸ™‚

          1 Reply Last reply
          0
          • hbons@mastodon.socialH hbons@mastodon.social

            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. 🌱

            #software #development

            rupertreynolds@hachyderm.ioR This user is from outside of this forum
            rupertreynolds@hachyderm.ioR This user is from outside of this forum
            rupertreynolds@hachyderm.io
            wrote last edited by
            #8

            @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!

            hbons@mastodon.socialH 1 Reply Last reply
            0
            • hbons@mastodon.socialH hbons@mastodon.social

              @ednl the icon brings back memories.

              rupertreynolds@hachyderm.ioR This user is from outside of this forum
              rupertreynolds@hachyderm.ioR This user is from outside of this forum
              rupertreynolds@hachyderm.io
              wrote last edited by
              #9

              @hbons @ednl In my case, memories of wishing I could gnaw my own arm off, as an excuse to stop using it.

              1 Reply Last reply
              0
              • rupertreynolds@hachyderm.ioR rupertreynolds@hachyderm.io

                @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!

                hbons@mastodon.socialH This user is from outside of this forum
                hbons@mastodon.socialH This user is from outside of this forum
                hbons@mastodon.social
                wrote last edited by
                #10

                @RupertReynolds never heard of it. I need to check that out.

                rupertreynolds@hachyderm.ioR 1 Reply Last reply
                0
                • hbons@mastodon.socialH hbons@mastodon.social

                  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. 🌱

                  #software #development

                  hbons@mastodon.socialH This user is from outside of this forum
                  hbons@mastodon.socialH This user is from outside of this forum
                  hbons@mastodon.social
                  wrote last edited by
                  #11

                  much better! 🌱

                  Link Preview Image
                  Bobby/build-aux/release-steps.md at main Β· hbons/Bobby

                  Browse SQLite files. Contribute to hbons/Bobby development by creating an account on GitHub.

                  favicon

                  GitHub (github.com)

                  alexanderbird@mstdn.caA 1 Reply Last reply
                  0
                  • hbons@mastodon.socialH hbons@mastodon.social

                    @RupertReynolds never heard of it. I need to check that out.

                    rupertreynolds@hachyderm.ioR This user is from outside of this forum
                    rupertreynolds@hachyderm.ioR This user is from outside of this forum
                    rupertreynolds@hachyderm.io
                    wrote last edited by
                    #12

                    @hbons
                    Here's one I prepared earlier:-

                    #!/bin/regina
                    SIGNAL ON NOVALUE

                    say "Hello, world!"
                    say "Hello," "world!" /* n.b. inserts space by default */
                    Say "Hello," || "world" /* no space inserted */
                    say "5! is" factorial(5)
                    Exit 0

                    factorial: procedure /* procedure affects scoping and allows recursion */
                    n = arg(1)
                    If n <= 2 then,
                    Return n
                    Return (n * factorial(n-1))

                    rupertreynolds@hachyderm.ioR 1 Reply Last reply
                    0
                    • rupertreynolds@hachyderm.ioR rupertreynolds@hachyderm.io

                      @hbons
                      Here's one I prepared earlier:-

                      #!/bin/regina
                      SIGNAL ON NOVALUE

                      say "Hello, world!"
                      say "Hello," "world!" /* n.b. inserts space by default */
                      Say "Hello," || "world" /* no space inserted */
                      say "5! is" factorial(5)
                      Exit 0

                      factorial: procedure /* procedure affects scoping and allows recursion */
                      n = arg(1)
                      If n <= 2 then,
                      Return n
                      Return (n * factorial(n-1))

                      rupertreynolds@hachyderm.ioR This user is from outside of this forum
                      rupertreynolds@hachyderm.ioR This user is from outside of this forum
                      rupertreynolds@hachyderm.io
                      wrote last edited by
                      #13

                      @hbons p.s. Rexx strings are 8-bit friendly. You only need to worry about nulls and backslashes when the strings hit the shell.

                      1 Reply Last reply
                      0
                      • hbons@mastodon.socialH hbons@mastodon.social

                        much better! 🌱

                        Link Preview Image
                        Bobby/build-aux/release-steps.md at main Β· hbons/Bobby

                        Browse SQLite files. Contribute to hbons/Bobby development by creating an account on GitHub.

                        favicon

                        GitHub (github.com)

                        alexanderbird@mstdn.caA This user is from outside of this forum
                        alexanderbird@mstdn.caA This user is from outside of this forum
                        alexanderbird@mstdn.ca
                        wrote last edited by
                        #14

                        @hbons it's beautiful!

                        1 Reply Last reply
                        1
                        0
                        • R relay@relay.mycrowd.ca shared this topic
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • World
                        • Users
                        • Groups