top | item 46563079

(no title)

lillecarl | 1 month ago

Craziest thing: You can still script in bash/zsh even if you use fish but you can't always copy-paste from StackOverflow.

discuss

order

dietr1ch|1 month ago

The problem is that I forgot (if I ever knew) bash.

I can write fish, scripting or interactively on my shell without thinking too hard about the syntax, but when scripting in bash I require an example or using my snippets to be sure I'm not shooting myself on the foot or writing something that bash will reject right away.

lillecarl|1 month ago

The trick is to use "shellcheck" on your bash scripts, it's an overly anal linter that'll keep you sharp, and it's 2026, everyone can script bash with AI :)

But yeah the syntax with [[, if fi, while stmt; do; done, "$@", case esac, "${!VAR}" and others makes me long for the day fish shell gets "euo pipefail" mode so I can stop writing bash or || true :)