← Back to context

Comment by ComputerGuru

2 years ago

FWIW, fish is much more bash-compatible these days. We've introduced support for a lot of bash-isms that don't completely break the fish spirit or clash with its syntax in the last few releases.

I personally liked "; and" but... "&&" solves around half of the problems with copy-pasting and does not look terrible, so it was probably the right thing to add.

Thanks! I'm trying fish once in a while, and currently, the following are missing:

    $ cat <(echo "Hello")
    Hello
    $ cat <<<"Test"
    Test

  • In regards to the former, you use the psub function instead of special syntax (a pattern that fish often follows):

    $ cat (echo Hello | psub)

  • Also, fish doesn't have here-strings/here-docs, I believe. That is far and away the main thing I miss in fish.