diff options
Diffstat (limited to 'content')
-rw-r--r-- | content/2023/write-posix-shell.md | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/content/2023/write-posix-shell.md b/content/2023/write-posix-shell.md new file mode 100644 index 0000000..d60b64e --- /dev/null +++ b/content/2023/write-posix-shell.md @@ -0,0 +1,25 @@ +--- +title: "Write Posix Shell" +category: "software" +abstract: A shell script may be just what you need +date: 2023-04-05T21:54:48+02:00 +year: 2023 +draft: false +tags: +- POSIX +- shell +- scripting +- bash +- luke-smith +- jes-olson +--- +[Jes Olson](https://j3s.sh/thought/write-posix-shell.html): +> when the problem you're solving is small, well defined, +> and unlikely to change, consider shell. +> +> when the problem you're solving involves linux, +> text processing, or managing files, consider shell. + +This is what [Luke Smith](https://odysee.com/@Luke:7) taught me: a shell script is often enough. Of course, you can use Ruby, Python - heck, even JavaScript. But often, you don't need it, as a simple shell is more than enough. + +What FreeBSD experience added to that is portability. I try not to use bashisms anymore (thanks to [shellcheck](https://www.shellcheck.net)), as POSIX is good enough. If it's not, maybe shell is not the best approach for this problem. Portability and lack of dependencies will pay out eventually. |