small pixel drawing of a pufferfish j3s.sh

*
Jes Olson j3s@c3f.net
Fri, 10 Mar 2023 23:27:01 -0800
commit

1bb0a9e9060eba2a735df6f39b396f03b3265967

parent

ba60481487f492dcdd16f545dec06a7ff467b3df

1 files changed, 6 insertions(+), 7 deletions(-)

jump to
M thought/write-posix-shell.htmlthought/write-posix-shell.html

@@ -93,7 +93,7 @@ and csh.

mrsh. tcsh. pdksh. the list of shell dialects goes on and on forever, - like a slimy snail + like a big long slimy snail trail. each shell dialect has varying levels of compatability with the others. for example, imagine writing

@@ -109,14 +109,13 @@

people say "bash" because bash is the most common shell dialect. - (bernie sanders voice) - let me be clear: + to be clear: if you write shell and use some bash features, you're writing shell in the bash dialect. if you happen to not use any bash features, - then you're just writing plain shell. + then you're writing plain old shell. - the reason i'm being pedantic about "bash" is because + the reason i'm being pedantic about dialects is because i believe that most people should only learn and write a single dialect of shell: posix shell

@@ -139,10 +138,10 @@ the good news is that if you write posix shell, there are

huge benefits. posix shell is compatible: - it'll run on debian, + it'll run on debian, ubuntu, on openbsd, in an alpine container, - on macos! illumos! + on illumos! arch! even horrible old AIX! posix shell is defined: