diff options
author | Benedict Reuschling <bcr@FreeBSD.org> | 2010-07-26 18:33:33 +0000 |
---|---|---|
committer | Benedict Reuschling <bcr@FreeBSD.org> | 2010-07-26 18:33:33 +0000 |
commit | bc6940585f5f394c8c3fcff58c764a40f7294d4b (patch) | |
tree | 8039d58f76df49484335ffe31bea5ea84c78b450 /contrib/netcat | |
parent | b739a509f24bda598a7d0bea583369fb0bc4ee00 (diff) | |
download | src-test-bc6940585f5f394c8c3fcff58c764a40f7294d4b.tar.gz src-test-bc6940585f5f394c8c3fcff58c764a40f7294d4b.zip |
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.
PR: docs/142243
Submitted by: Yasir (yasir27 at mail dot ru)
Obtained from: OpenBSD
Discussed with: delphij
MFC after: 7 days
Notes
Notes:
svn path=/head/; revision=210511
Diffstat (limited to 'contrib/netcat')
-rw-r--r-- | contrib/netcat/nc.1 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/netcat/nc.1 b/contrib/netcat/nc.1 index ac6aa475fbd79..41f5f092cdee7 100644 --- a/contrib/netcat/nc.1 +++ b/contrib/netcat/nc.1 @@ -27,7 +27,7 @@ .\" .\" $FreeBSD$ .\" -.Dd April 15, 2010 +.Dd July 3, 2010 .Dt NC 1 .Os .Sh NAME @@ -340,7 +340,7 @@ 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: .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 .Ed .Pp Note that this also displays the headers sent by the web server. |