News for hackers. Stuff that matters.
Re:Fish shell by mFixman on Monday May 17, 2021 @11:18AM (#27184426)
My biggest drawback for fish is that there is no way to concatenate several commands inside a block that I know of.

In bash, I can run the following do the following, and the only ways I found to do this in fish are using several commands or calling `bash -c` with a subcommand.

```

(cat file_1; cat file_2 | grep something) | sort

```

Re:Fish shell by faho on Monday May 17, 2021 @11:27AM (#27184541)
It's simply a block, and fish specifies blocks with "begin" and "end".

    begin; cat file_1; cat file_2 | grep something; end | sort
(note that this is distinct from a "subshell", which has a separate environment and typically is more confusing than helpful. In this particular case it doesn't matter)