summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2005-07-17 19:18:48 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2005-07-17 19:18:48 +0000
commit0bac7239f5ed3041be2ffba1b24d5990c5e33582 (patch)
tree5e9606d69ff265cdd62f9ccaa3fcef41ee908c7b /usr.bin
parent8e358d6a694150760bba0cc81a436da4824658c6 (diff)
oops... .Dl does not like to be inundated with args, and my last commit just
exceeded the happy number - use a display instead.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/nc/nc.17
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/nc/nc.1 b/usr.bin/nc/nc.1
index 19dcad5d5fb..773de161359 100644
--- a/usr.bin/nc/nc.1
+++ b/usr.bin/nc/nc.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: nc.1,v 1.39 2005/07/17 19:15:38 jmc Exp $
+.\" $OpenBSD: nc.1,v 1.40 2005/07/17 19:18:47 jmc Exp $
.\"
.\" Copyright (c) 1996 David Sacerdote
.\" All rights reserved.
@@ -290,8 +290,9 @@ It can aid in troubleshooting,
when it might be necessary to verify what data a server is sending
in response to commands issued by the client.
For example, to retrieve the home page of a web site:
-.Pp
-.Dl $ echo -n \&"GET / HTTP/1.0\er\en\er\en\&" | nc host.example.com 80
+.Bd -literal -offset indent
+$ echo -n "GET / HTTP/1.0\er\en\er\en" | nc host.example.com 80
+.Ed
.Pp
Note that this also displays the headers sent by the web server.
They can be filtered, using a tool such as