My primary use case for Amber is when I need to write a Bash script but don’t remember the silly syntax. My most recent Bash mistake was misusing test -n and test -z. In Amber, I can just use something == "" or len(something) == 0
My primary use case for Amber is when I need to write a Bash script but don’t remember the silly syntax. My most recent Bash mistake was misusing test -n and test -z. In Amber, I can just use something == "" or len(something) == 0
test -n can be
[ "$something" ]and test -z can be[ "$something" = "" ]And this applies to posix shell, not just bash.
Thank you for this comment. I’m revisiting this comment because I need to write this…