diff options
author | guenther <> | 2010-07-25 07:51:39 +0000 |
---|---|---|
committer | guenther <> | 2010-07-25 07:51:39 +0000 |
commit | a620d6c92b17bd1b2534090e02846c77d2811834 (patch) | |
tree | aff05c5732c3aab5b692daa3d3f5274d0fe16ab7 /src/usr.bin/nc/nc.1 | |
parent | 7b3837a17bc96468eb10f5876dba92847b825eac (diff) | |
download | openbsd-a620d6c92b17bd1b2534090e02846c77d2811834.tar.gz openbsd-a620d6c92b17bd1b2534090e02846c77d2811834.tar.bz2 openbsd-a620d6c92b17bd1b2534090e02846c77d2811834.zip |
echo behaves differently in sh and csh, only handling C-style escapes
in the former, so switch an example that needs them to use printf instead.
From bcr at freebsd.org.
ok halex@
Diffstat (limited to 'src/usr.bin/nc/nc.1')
-rw-r--r-- | src/usr.bin/nc/nc.1 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/usr.bin/nc/nc.1 b/src/usr.bin/nc/nc.1 index fa0f76b954..c2599ce3f1 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.54 2010/07/03 04:44:51 guenther Exp $ | 1 | .\" $OpenBSD: nc.1,v 1.55 2010/07/25 07:51:39 guenther 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: July 3 2010 $ | 28 | .Dd $Mdocdate: July 25 2010 $ |
29 | .Dt NC 1 | 29 | .Dt NC 1 |
30 | .Os | 30 | .Os |
31 | .Sh NAME | 31 | .Sh NAME |
@@ -317,7 +317,7 @@ when it might be necessary to verify what data a server is sending | |||
317 | in response to commands issued by the client. | 317 | in response to commands issued by the client. |
318 | For example, to retrieve the home page of a web site: | 318 | For example, to retrieve the home page of a web site: |
319 | .Bd -literal -offset indent | 319 | .Bd -literal -offset indent |
320 | $ echo -n "GET / HTTP/1.0\er\en\er\en" | nc host.example.com 80 | 320 | $ printf "GET / HTTP/1.0\er\en\er\en" | nc host.example.com 80 |
321 | .Ed | 321 | .Ed |
322 | .Pp | 322 | .Pp |
323 | Note that this also displays the headers sent by the web server. | 323 | Note that this also displays the headers sent by the web server. |