I found the nc (netcat) included in Raspbian is an OpenBSD version which I cannot find the support for running a program after a connection is established (i.e. the “-e” flag). While the version in Debian RPi desktop is a traditional version that does support the “-e” and “-c” flags. Why Raspbian choose include an OpenBSD version? Security concerns? License concerns?
Also, is there a way to use the OpenBSD version that can achieve the same effect as using the traditional version with “-e” parameter?
Lastly, if I really want the “-e” capability of netcat, which version I should install (recommendation)? E.g. netcat-traditional, netcat6, netcat (TCP/IP swiss army knife….)? or ncat (from nmap)? <-- actually I cannot find that ncat using apt-cache search.