News for hackers. Stuff that matters.
Re:A Useful Thing in Bash by mFixman on Thursday October 10, 2019 @10:07AM (#21214648)
I've been using fish for several years now, but I always have to jump back to bash when I need to write an moderately complex command.

Does anyone know if there's an equivalent of Bash's `(...)` (without '$') in fish? What about anonymous pipes `<(...)` and `>(...)`?

Re:A Useful Thing in Bash by stevelosh on Thursday October 10, 2019 @10:22AM (#21214816)
The anonymous pipes are also called "process substitution", and are done with `psub` in fish:

    sjl at alephnull in ~/scratch/tmp
    ><((°> diff -U0 (ls -1 | psub) (ls -1 | grep -v foo | psub)
    --- /tmp/.psub.cIcXKeQj3O       2019-10-10 10:21:58.940444840 -0400
    +++ /tmp/.psub.7W6mBnxcQD       2019-10-10 10:21:58.952444799 -0400
    @@ -3 +2,0 @@
    -foo
Re:A Useful Thing in Bash by mFixman on Tuesday October 15, 2019 @07:04AM (#21257316)
Amazing, this is exactly what I was looking for. Thanks!