Hacker News new | ask | show | jobs
by nknight 5230 days 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.

2 comments

Most distributions disable bash /dev/{tcp,udp} by default. You would have to compile bash using --enable-net-redirections.
Exactly my thought. Really don't like the use of /dev/... for something that is not a device.