From 7b1f25b5a8f60c2f388eff66a4532f424820e1d6 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Fri, 1 Mar 2019 22:10:42 -0500 Subject: [PATCH] doc: use POSIX shell syntax in the man page examples. The shell examples given in the man page use the "haeredes <<< foo" syntax to feed the string "foo" into haeredes on stdin. That's a Bash-only shortcut for "echo foo | haeredes", however, and the latter works in all POSIX-compatible shells. So, this commit updates the documentation to use the more reliable syntax. --- doc/man1/haeredes.1 | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/doc/man1/haeredes.1 b/doc/man1/haeredes.1 index 100a75e..197b7e8 100644 --- a/doc/man1/haeredes.1 +++ b/doc/man1/haeredes.1 @@ -131,7 +131,7 @@ Make sure example.com has the expected name servers, [ab].iana-servers.net: .nf -.I $ haeredes a.iana-servers.net b.iana-servers.net <<< \(dqexample.com\(dq +.I $ echo \(dqexample.com\(dq | haeredes a.iana-servers.net b.iana-servers.net .fi .IP \[bu] 2 @@ -140,9 +140,8 @@ must remember to supply the trailing dot yourself. Otherwise, you'll get false positives. .nf -.I $ haeredes \-\-no\-append\-root \\\\ -.I " a.iana-servers.net b.iana-servers.net" \\\\ -.I " <<< \(dqexample.com\(dq" +.I $ echo \(dqexample.com\(dq | \\\\ +.I " haeredes \-\-no\-append\-root a.iana-servers.net b.iana-servers.net" Domain \(dqexample.com\(dq delegates somewhere else: \(dqb.iana-servers.net.\(dq \(dqa.iana-servers.net.\(dq .fi @@ -151,14 +150,15 @@ Check orlitzky.com against the expected name servers, using a root nameserver (this checks the registrar configuration): .nf -.I $ haeredes --server d.gtld-servers.net dns1.viabit.com dns2.viabit.com \\\\ -.I " <<< \(dqorlitzky.com\(dq" +.I $ echo \(dqorlitzky.com\(dq | \\\\ +.I " haeredes --server d.gtld-servers.net" \\\\ +.I " dns1.viabit.com dns2.viabit.com" .fi .IP \[bu] Check orlitzky.com against only one of the expected two nameservers: .nf -.I $ haeredes dns1.viabit.com <<< \(dqorlitzky.com\(dq +.I $ echo \(dqorlitzky.com\(dq | haeredes dns1.viabit.com Domain \(dqorlitzky.com.\(dq delegates somewhere else: \ \(dqdns2.viabit.com.\(dq .fi @@ -167,7 +167,7 @@ Check a nonexistent domain (we provide no delegates, since we know .doesnt-exist will not be delegated): .nf -.I $ haeredes <<< \(dqfoo.doesnt-exist\(dq +.I $ echo \(dqfoo.doesnt-exist\(dq | haeredes Domain \(dqfoo.doesnt-exist.\(dq not delegated. .fi .IP \[bu] @@ -176,8 +176,8 @@ nameserver. This should result in a timeout, which will be ignored per the discussion in \fBDNS ERRORS\fR: .nf -.I $ haeredes --timeout=1 --server 10.1.46.12 ns1.example.com \\\\ -.I " <<< \(dqexample.com\(dq" +.I $ echo \(dqexample.com\(dq | \\\\ +.I " haeredes --timeout=1 --server 10.1.46.12 ns1.example.com" .fi .SH BUGS .P -- 2.43.2