2 ms·
The post shows use of ztcp, but zsh also has zsocket: http://zsh.sourceforge.net/Doc/Release/Zsh-Modules.html#The-zsh_002fnet_002fsocket-Module http://zsh.sour
by jolmg 6y ago
The post shows use of ztcp, but zsh also has zsocket:
http://zsh.sourceforge.net/Doc/Release/Zsh-Modules.html#The-zsh_002fnet_002fsocket-Module http://zsh.sourceforge.net/Doc/Release/Zsh-Modules.html#The-...
The difference seems to be that zsocket works with Unix domain sockets and, only for incoming connections, sockets already opened and with a file descriptor. I suppose this latter one can be used for any kind of socket if opened before exec'ing zsh.
- who23 6y agoHey I'm the author. Yeah, I stumbled on this while doing a little research into zsh socket capabilities, but I decided to exclude it because the post was more about network sockets than Unix domain sockets.
- jolmg 6y agoYeah, when I originally wrote the comment I thought that it was more generic. It was only later that I saw it was more aimed at domain sockets, and edited that in.