What is the Fish equivalent for << in Bash, as in
$ nc localhost 8888 << EOF
> foo
> EOF
In Fish, it crashes
> nc localhost 8888 << EOF
fish: Expected redirection specification, got token of type 'Redirect input to file'
nc localhost 8888 << EOF
^
Thanks to the link provided by Etan I found out that such feature is not implemented, and the closest thing available is
> echo "\
foo
" | nc localhost 8888
That is not implemented in Fish. You can read about Bash/Fish syntax crossovers HERE.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With