4 ms·
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 fol
by mFixman 5y ago
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
```
- faho 5y agoIt'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)