diff options
author | jmc <> | 2021-03-31 20:41:35 +0000 |
---|---|---|
committer | jmc <> | 2021-03-31 20:41:35 +0000 |
commit | 17dd71435e1ff8d1560ed9c654a29e51d3b8f4fa (patch) | |
tree | c551e63819efcb4fd4da06f93c7f7822ddc8c837 /src | |
parent | 204143467ecba49a508c860d8a061d6dbfec7672 (diff) | |
download | openbsd-17dd71435e1ff8d1560ed9c654a29e51d3b8f4fa.tar.gz openbsd-17dd71435e1ff8d1560ed9c654a29e51d3b8f4fa.tar.bz2 openbsd-17dd71435e1ff8d1560ed9c654a29e51d3b8f4fa.zip |
one of the examples needs an -N (and explanation);
diff from robert scheck
discussed with and tweaked by sthen
Diffstat (limited to 'src')
-rw-r--r-- | src/usr.bin/nc/nc.1 | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/usr.bin/nc/nc.1 b/src/usr.bin/nc/nc.1 index fff5857229..14733597c1 100644 --- a/src/usr.bin/nc/nc.1 +++ b/src/usr.bin/nc/nc.1 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: nc.1,v 1.95 2020/02/12 14:46:36 schwarze Exp $ | 1 | .\" $OpenBSD: nc.1,v 1.96 2021/03/31 20:41:35 jmc Exp $ |
2 | .\" | 2 | .\" |
3 | .\" Copyright (c) 1996 David Sacerdote | 3 | .\" Copyright (c) 1996 David Sacerdote |
4 | .\" All rights reserved. | 4 | .\" All rights reserved. |
@@ -25,7 +25,7 @@ | |||
25 | .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 25 | .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
26 | .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 | .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | .\" | 27 | .\" |
28 | .Dd $Mdocdate: February 12 2020 $ | 28 | .Dd $Mdocdate: March 31 2021 $ |
29 | .Dt NC 1 | 29 | .Dt NC 1 |
30 | .Os | 30 | .Os |
31 | .Sh NAME | 31 | .Sh NAME |
@@ -414,7 +414,7 @@ On a second console | |||
414 | .Pq or a second machine , | 414 | .Pq or a second machine , |
415 | connect to the machine and port being listened on: | 415 | connect to the machine and port being listened on: |
416 | .Pp | 416 | .Pp |
417 | .Dl $ nc 127.0.0.1 1234 | 417 | .Dl $ nc -N 127.0.0.1 1234 |
418 | .Pp | 418 | .Pp |
419 | There should now be a connection between the ports. | 419 | There should now be a connection between the ports. |
420 | Anything typed at the second console will be concatenated to the first, | 420 | Anything typed at the second console will be concatenated to the first, |
@@ -427,7 +427,10 @@ and which side is being used as a | |||
427 | .Sq client . | 427 | .Sq client . |
428 | The connection may be terminated using an | 428 | The connection may be terminated using an |
429 | .Dv EOF | 429 | .Dv EOF |
430 | .Pq Sq ^D . | 430 | .Pq Sq ^D , |
431 | as the | ||
432 | .Fl N | ||
433 | flag was given. | ||
431 | .Sh DATA TRANSFER | 434 | .Sh DATA TRANSFER |
432 | The example in the previous section can be expanded to build a | 435 | The example in the previous section can be expanded to build a |
433 | basic data transfer model. | 436 | basic data transfer model. |