- 9 Posts
- 11 Comments
I use light theme, btw
lens0021@programming.devto
Technology@lemmy.world•There’s so much stolen data in the world, South Korea will require face scans to buy a SIMEnglish
15·11 months agoKorean here. My country hasn’t even collected the data yet, so it will. What were they thinking?
lens0021@programming.devto
Programmer Humor@programming.dev•TailwindSQL - SQL Queries with Tailwind Syntax
7·11 months agoIs it April Fool’s Day already?
lens0021@programming.devOPto
Linux@programming.dev•Amber the programming language compiled to Bash, 0.5.1 release
1·1 year 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·1 year 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·1 year 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·1 year 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·1 year 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"










dickbutt is merged last week. Isn’t enough? https://github.com/skridlevsky/openchaos/pull/14