I am using Ubuntu server 16.04.3, it comes with the OpenBSD version of netcat.
I have used the OpenBSD version of netcat before in Fedora, and in Fedora I can't use the
-p option with the
-l option, for example the following is illegal:
nc -l -p 12345
But in Ubuntu server 16.04.3, the above command worked (by "worked", I mean netcat started listening)!
man nc on Ubuntu server 16.04.3 itself says that it is illegal:
Why is this happening?!