News for hackers. Stuff that matters.
Re:Fish 3.4.0 Released by robin_reala on Sunday March 13, 2022 @11:42AM (#30662237)
3.4.0 adds support for $(foo) interpolation, which was the one thing that usually tripped me up when using basic provided scripts e.g. installation instructions in READMEs. Fish previously only supported the (foo) syntax, without the dollar.
Re:Fish 3.4.0 Released by theonemind on Sunday March 13, 2022 @12:57PM (#30663163)
The old behavior amused me. There's probably a decent argument for it, but it's kind of infuriating:

theonemind@onemindsmachine ~> echo $(badfish) fish: $(...) is not supported. In fish, please use '(badfish)'.

echo $(badfish) ^

"I know exactly what you meant. Not gonna do it."

Re:Fish 3.4.0 Released by em-bee on Sunday March 13, 2022 @09:19PM (#30667499)
`echo (goodfish)` just looks a lot cleaner to me. and as i am still using other shells some times (can't install fish on all my clients machines) the visual difference between `()` and `$()` helps to make it more obvious which shell i am currently using.
Re:Fish 3.4.0 Released by saghm on Sunday March 13, 2022 @09:58PM (#30667733)
Seems like just printing a warning to stderr or something would be a reasonable behavior (or even just printing to the screen when interactive in some special way that doesn't go to stdout or stderr in order to not mess up scripts)
Re:Fish 3.4.0 Released by bin_bash on Sunday March 13, 2022 @11:48AM (#30662307)
When they added support for && it really made my life easier with pasting snippets, happy to see this now as well
Re:Fish 3.4.0 Released by eterps on Sunday March 13, 2022 @12:10PM (#30662582)
Also support for the 'export FOO=42' syntax helped a lot, with some care very simple scripts can be made to work both on fish and traditional shells
Re:Fish 3.4.0 Released by ripley12 on Sunday March 13, 2022 @11:48AM (#30662310)
Nice!

I recently gave up on Fish after 3 years of using it as my primary shell. It was nice, but not nice enough to make up for all the pains of being different from POSIX shells. Glad to see Fish improving on that in a small but concrete way.