85

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
[-] lens0021@programming.dev 1 points 4 days ago* (last edited 4 days ago)

Fish 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.

[-] victorz@lemmy.world 2 points 4 days ago

In which way is it weird? It's different, but how is it weird?

No need to apologize, you're allowed your opinions and feelings.

I would suggest reading the manual page for argparse thoroughly from top to bottom of you haven't already. I struggled with argparse at first too, but it's because I skimmed the manual instead of reading it.

I would also read through all of the manual, and you'll find useful idiomatic fish things like not setting PATH directly, but using fish_add_path, among other things. ๐Ÿ‘

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

Linux

10467 readers
657 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