\

Ask HN: Are there enough utilities in bash now?

3 points - today at 6:49 AM


I'm curious to know if bash is completely filling all the boxes and everything is perfect, or would it be great to have some more utilities? Share your thoughts.

  • asen_not_taken

    today at 1:22 PM

    I don't really use bash anymore for anything complex. The cognitive load of remembering all the commands and options is just too high. I simply describe what I need to do to claude code, and it gives me the exact one-liner I need. For me, that's the ultimate "utility" we've been looking for.

    • slightwinder

      today at 10:53 AM

      I don't understand the question. There is no perfection in software.

      And what does "utilities in bash" mean? Do you mean features of specifically the bash-shell? Do you mean shell-tools in general? Or shells in general?

        • Forgret

          today at 1:16 PM

          Utilities: ls, cp, grep etc. That is, are they all ideally suited for their purpose or do they have any drawbacks, and are there enough of them Bash Should there be more of them?

            • slightwinder

              today at 3:41 PM

              > Utilities: ls, cp, grep etc.

              These are unrelated to bash. They are just commandline-tools; you can call them from any shell.

              > do they have any drawbacks,

              They all have their drawbacks, which is why there are constantly new tools, improving that space.

      • bjourne

        today at 11:28 AM

        If you're talking about bash the shell scripting language then yes. In fact, I assert that removing dumb "features" is the only way to make it better.

        • stop50

          today at 6:54 AM

          I use shell for simple things like "do this for all the files in here". shellscripts for repeated stuff and wgeb it gets complicated i turn to programming languages like python

            • Forgret

              today at 6:55 AM

              So, is the standard set of Bash syntax completely enough for you?

          • cpach

            today at 7:08 AM

            Handling of maps/dictionaries could probably be improved. The current solution feels quite clunky.

            • no_time

              today at 11:28 AM

              Not really a utility per se, but I really really wish that echo {1..n} would run echo n number of times with the current index as the argument instead of expanding to a single string that gets printed.

              I know you can do a for loop as a one liner but I somehow never get it right the first time and turns out to be a bit of a PIA.

                • Forgret

                  today at 3:35 PM

                  You can use the following command:

                  for i in {1..5}; do echo $i; done