3 ms·
The network pseudo filehandles (/dev/tcp/<host>/<port> and /dev/udp/<host>/<port>) are explicitly disabled in certain distros (notably Debian). Ubuntu appears
by dredmorbius 14y ago
The network pseudo filehandles (/dev/tcp/<host>/<port> and /dev/udp/<host>/<port>) are explicitly disabled in certain distros (notably Debian). Ubuntu appears to support it.
Though not limited to just shell redirections, one of the true masters of bash (and zsh) is Larry Peek whose written/given multiple books, articles, and presentations on the topic.
- dfc 14y agoDo you know why debian did that? Any links to debian-devel threads?
- dredmorbius 14y agohttp://lists.debian.org/debian-user/2006/07/msg00204.html http://lists.debian.org/debian-user/2006/07/msg00204.html The feature is confusing (it uses virtual files visibly only to bash, and not extant on the filesystem) and overlaps existing functionality (netcat). Also: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=146464 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=146464 http://lists.debian.org/debian-user/2003/04/msg01591.html http://lists.debian.org/debian-user/2003/04/msg01591.html http://lists.debian.org/debian-devel/2006/11/msg00794.htmlu http://lists.debian.org/debian-devel/2006/11/msg00794.htmlu http://lists.debian.org/debian-user/2006/07/msg00204.html http://lists.debian.org/debian-user/2006/07/msg00204.html