↳
In-reply-to
»
And errors out expectedly using
⤋ Read More
dash or ash, very nice POSIX Sh compliant shells:
@prologic@twtxt.net Yeah, that is part of the problem. Bash is so dominant on Linux, it’s hard to avoid. When I use #!/bin/sh, it still gets me a Bash that does NOT enter strict POSIX mode. 🫤 The script below uses Bashisms and requests #!/bin/sh but still runs happily …
#!/bin/sh
foo=1
if [[ "$foo" == 1 ]]
then
echo match
fi