News for hackers. Stuff that matters.
Re:Writing Safe Shell Scripts (2019) by kohtatsu on Saturday February 01, 2020 @03:21PM (#22212988)
Looks like a lot of your scripts couldbe aliases, I store mine in ~/.aliases, and slightly more complicated things (e.g. take arguments) in ~/.functions, and source both those files from bashrc.

I have maybe 3 standalone shell scripts in my PATH, despite writing thousands of lines of shell.

Re:Writing Safe Shell Scripts (2019) by mfontani on Saturday February 01, 2020 @05:48PM (#22213754)
I've moved from aliases to scripts as I can't seem to have found the (if any exists...) way to ensure aliases can be used from within vim's ":!..." or ":'<,'>!...", and as I often find myself wanting to either execute something while I'm amending code, or wanting to filter text with a purpose-built command, I end up writing (sometimes very short!) shell scripts.
Re:Writing Safe Shell Scripts (2019) by ben509 on Saturday February 01, 2020 @03:39PM (#22213082)
I had a mess of shell functions. It is nice that they run more quickly, but I don't have any shell commands that need to run that often.

What moved me to putting them in a bin directory was that it's just easier to edit a standalone script.

Re:Writing Safe Shell Scripts (2019) by kohtatsu on Saturday February 01, 2020 @04:24PM (#22213337)
Write a shell script to concat them into a single file to source ;)