2 ms·
Er, what OS is this referring to? My Linux boxes don't have a /dev/tcp or /dev/udp. This sounds like a Plan9ism, but IIRC Plan9's network interface shows up und
by nknight 15y ago
Er, what OS is this referring to? My Linux boxes don't have a /dev/tcp or /dev/udp. This sounds like a Plan9ism, but IIRC Plan9's network interface shows up under /net, not /dev.
EDIT: Ah, this is truly a Bash feature, some sort of internal hackery. It doesn't depend on the actual existence of tcp or udp devices.
- justincormack 15y agoExactly my thought. Really don't like the use of /dev/... for something that is not a device.
- joshbaptiste 15y agoMost distributions disable bash /dev/{tcp,udp} by default. You would have to compile bash using --enable-net-redirections.