Amber the programming language compiled to Bash, 0.5.1 release

10 months ago by lens0021 to c/linux

Documentation for Amber programming language

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

load all comments
gtrcoi 4 points 10 months ago

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?

path: 0 20810736, hotness: undefined, score: 4, children: 5
lens0021 3 points 10 months ago

Currently, Amber does not even support Bash 2 because Bash 2 does not support the += operator. (ticket) However, I believe that POSIX compliance is on Amber's long-term milestone, and that it will eventually achieve this as its support range expands.

path: 0 20810736 20821219, hotness: undefined, score: 3, children: 0
linux
linux

@programming.dev

login for more options
15180
5324
3681

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

go to feed...