Re:Fish Shell 3.5.0
by medler on Thursday June 16, 2022 @01:36PM
(#31768772)
I used fish for a long time, but lost patience with the incompatibility with other shells. It’s nice to be able to just paste and run someone else’s command, and I eventually tired of having to rewrite every command to use fish syntax. For example, replacing FOO= with set - x …
The reverse is even worse—if I need to send someone a command to run, I have to rewrite it in a syntax that’s likely to work when they run it. It only takes a few seconds each time but I grew weary of it.
[ Parent
| on HN ]
Re:Fish Shell 3.5.0
by mixmastamyk on Thursday June 16, 2022 @01:40PM
(#31768810)
That’s accepted now, and was always available by prepending env.
They have improved compatibility a lot.
Also, you could do what I do: leave bash or something else as the default, and then just run fish manually.
Then if I have a problem pasting or something I run type exit.
But the incompatibilities are a lot less now.
Re:Fish Shell 3.5.0
by Starlevel001 on Thursday June 16, 2022 @02:23PM
(#31769278)
You can just do `bash -c "CMD"`.
Re:Fish Shell 3.5.0
by tomjakubowski on Thursday June 16, 2022 @02:27PM
(#31769321)
occasionally you'll need to run a command which sources or exports… it's no silver bullet in my experience anyway
Check out fish-foreign-env, bass, and babelfish
Re:Fish Shell 3.5.0
by ducktective on Thursday June 16, 2022 @02:33PM
(#31769392)
create a key-binding to invoke your terminal with bash. I have not set fish as my system shell (aka chsh)