this post was submitted on 02 Dec 2025
84 points (100.0% liked)

Linux

10690 readers
287 users here now

A community for everything relating to the GNU/Linux operating system (except the memes!)

Also, check out:

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

founded 2 years ago
MODERATORS
 

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

you are viewing a single comment's thread
view the rest of the comments
[–] gtrcoi@programming.dev 4 points 2 weeks ago (5 children)

I get why this is useful, and it's useful for me as well, but the perfectionist in me asks why target bash instead of posix?

[–] Jakeroxs@sh.itjust.works 2 points 2 weeks ago (2 children)

As someone who knows nothing about POSIX, what's the difference or in your opinion what would make it specifically better with the context of amber?

[–] gtrcoi@programming.dev 4 points 2 weeks ago

To add to the great response from @confusedpuppy@lemmy.dbzer0.com, amber would address one thing only: writing the syntax.

Most people don't need it, and even if they had it would break the compliance in other ways besides syntax, but I'm sure there are people out there that know what they are doing who would appreciate amber.

Amber will still support bash stuff, or perhaps even other non-posix shells through the use of flags.

load more comments (1 replies)
load more comments (3 replies)