- 2 Posts
- 6 Comments
lens0021@programming.devOPto
Linux@programming.dev•Amber the programming language compiled to Bash, 0.5.1 release
1·17 days agoThank you for this comment. I’m revisiting this comment because I need to write this…

lens0021@programming.devOPto
Linux@programming.dev•Amber the programming language compiled to Bash, 0.5.1 release
1·18 days agoFish is my main shell of choice and I use my self-written functions(https://github.com/lens0021/Lens0021_Personal.Fish/blob/main/conf.d/lens0021_personal.fish) daily. But it is hard for me to say Fish’s syntax is not weird. Especially, I’m a little fuzzy on how to use
argparse. I am sorry.
lens0021@programming.devOPto
Linux@programming.dev•Amber the programming language compiled to Bash, 0.5.1 release
3·18 days agoCurrently, 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.
lens0021@programming.devOPto
Linux@programming.dev•Amber the programming language compiled to Bash, 0.5.1 release
3·18 days agotbh, I wouldn’t recommend that during alpha staging. There are still many bugs.
lens0021@programming.devOPto
Linux@programming.dev•Amber the programming language compiled to Bash, 0.5.1 release
3·18 days agoYep, the code you provided is compiled into this:
command_0="$(cat file.txt | grep "READY")" __status=$? if [ "${__status}" != 0 ]; then echo "Failed to read the file" fiSo, the outcome would depend on the
pipefailoption. (set -o pipefail)As you suggested, an Amberic snippet would be:
import { file_read } from "std/fs" import { match_regex } from "std/text" const result = file_read("file.txt") failed { echo "Failed to read the file" } if match_regex(result, "READY"): echo "file.txt contains READY"


Is it April Fool’s Day already?