将进程替换与此处字符串组合

Combining process substitution with a here string

我正在尝试将命令的结果与此处的字符串组合起来,如下所示:

cat <(echo first) <<< second

我得到这个输出:

first

而不是

first
second

为什么?

来自man cat

With no FILE, or when FILE is -, read standard input.

但是文件与 - 不同,不会读取标准输入。

我猜你会想要:

cat <(echo first) - <<<second