在Bash中<

$ nc localhost 8888 << EOF
> foo
> EOF

在鱼身上,它会崩溃
> nc localhost 8888 << EOF
fish: Expected redirection specification, got token of type 'Redirect input to file'
nc localhost 8888 << EOF
               ^

最佳答案

这在Fish中没有实现。您可以阅读Bash/Fish语法交叉HERE

关于bash - 什么是Bash中<< EOF的 fish 等价物,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/30357270/

10-08 23:41