News for hackers. Stuff that matters.
Re:Sockets in Your Shell by HelloNurse on Thursday December 03, 2020 @12:26PM (#25291560)
Bash is not even pretending such special files exist: /dev/tcp/somewhere is only an elegant syntactic shortcut for requesting a telnet-like network connected pipe in a context in which a filename is required. For the child process, it's just a file descriptor.
Re:Sockets in Your Shell by rvense on Thursday December 03, 2020 @01:21PM (#25292435)
I don't think it's elegant at all. Magically treating special strings in this manner seems like a violation of "everything is a file".