I am looking for a way to open TCP connections in fish shell.
In bash, I can do the following to open a TCP connection. This is quick telnet type test when telnet is not installed.
$ echo > /dev/tcp/127.0.0.1/80 && echo up up
A failed connection
aaron@aaron-pc: ~ $ echo > /dev/tcp/127.0.0.1/81 && echo up bash: connect: Connection refused bash: /dev/tcp/127.0.0.1/81: Connection refused
In fish I tried the following.
echo > /dev/tcp/127.0.0.1/80; and echo up An error occurred while redirecting file '/dev/tcp/127.0.0.1/80' open: No such file or directory
I guess the bash has that functionality to create a
tcp device when it needs it and fish uses some other mechanism.
Here is some of the documentation on bash and