svn commit: r210771 - stable/8/contrib/netcat
bcr at FreeBSD.org
Mon Aug 2 15:55:00 UTC 2010
Author: bcr (doc committer)
Date: Mon Aug 2 15:54:59 2010
New Revision: 210771
Use "printf" instead of "echo -n" in an example because it
should be more compatible for most shells that are out there.
I contacted Philip Guenther at OpenBSD about this PR and he
corrected the issue in their tree pretty fast.
Submitted by: Yasir (yasir27 at mail dot ru)
Obtained from: OpenBSD
Discussed with: delphij
stable/8/contrib/netcat/ (props changed)
--- stable/8/contrib/netcat/nc.1 Mon Aug 2 15:33:16 2010 (r210770)
+++ stable/8/contrib/netcat/nc.1 Mon Aug 2 15:54:59 2010 (r210771)
@@ -27,7 +27,7 @@
-.Dd April 15, 2010
+.Dd July 3, 2010
.Dt NC 1
@@ -340,7 +340,7 @@ when it might be necessary to verify wha
in response to commands issued by the client.
For example, to retrieve the home page of a web site:
.Bd -literal -offset indent
-$ echo -n "GET / HTTP/1.0\er\en\er\en" | nc host.example.com 80
+$ printf "GET / HTTP/1.0\er\en\er\en" | nc host.example.com 80
Note that this also displays the headers sent by the web server.
More information about the svn-src-all