On Mon, Jun 19, 2017 at 07:30:42PM -0400, Z wrote: > This patch adds support for Unix domain sockets. A filename of the form > /dev/unixstream/path used in a redirection makes bash attempt to open a > connection to the Unix domain stream socket at /path. Similarly a filename > of the form /dev/unixdgram/path makes bash attempt to open a connection to > the Unix domain datagram socket at /path.
Excuse my ignorance: - What would be an expected use case of this feature? /dev/tcp and /dev/udp are commonly used because it allows the shell script writer to interact with popular text based protocols like HTTP or SMTP. It would seem that this UNIX domain socket patch targets a niche instead? - Why should this be integrated into the core of bash, and not provided as a loadable builtin instead? It makes more sense to me to provide this as an optional shell builtin, which also make the usage less awkward (not a fan of the /dev/unixstream/the/path/is/here thing). By the way, the patch does not apply. It would seem like you copy-pasted the diff, so it got wrapped at some points and git is rejecting it. -- Eduardo Bustamante https://dualbus.me/