What is the Fish Equivalent for << EOF in Bash

What is the fish equivalent for <in Bash as in

$ nc localhost 8888 << EOF
> foo
> EOF

      

In Fish he crashes

> nc localhost 8888 << EOF
fish: Expected redirection specification, got token of type 'Redirect input to file'
nc localhost 8888 << EOF
               ^

      

+3


source share


2 answers


This is not implemented in Fish. You can read about the crossroads of Bash / Fish syntax HERE .



+3


source


Thanks to the link provided by Etan, I found out that no such feature is implemented and the closest thing is



> echo "\
  foo
  " | nc localhost 8888

      

+1


source







All Articles