commit:     13a6ca4187596d1b90c1f5831f1e6569567b59ee
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Thu Jan  9 08:23:03 2020 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Thu Jan  9 08:31:56 2020 +0000
URL:        https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=13a6ca41

tools-reference/{cut,head-and-tail}: Space between option and argument.

POSIX Utility Syntax Guidelines (Guideline 6) say that option and
mandatory option-argument should be separate arguments:
https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap12.html#tag_12_02

Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 tools-reference/cut/text.xml           | 4 ++--
 tools-reference/head-and-tail/text.xml | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/tools-reference/cut/text.xml b/tools-reference/cut/text.xml
index ccfd1e8..a608499 100644
--- a/tools-reference/cut/text.xml
+++ b/tools-reference/cut/text.xml
@@ -44,7 +44,7 @@ could use:
 </p>
 
 <codesample lang="ebuild">
-cut -s -d',' -f2,4-5 input.txt > output.txt
+cut -s -d , -f 2,4-5 input.txt &gt; output.txt
 </codesample>
 
 <p>
@@ -52,7 +52,7 @@ To chop the first character off stdin, one could use:
 </p>
 
 <codesample lang="ebuild">
-do_stuff | cut -c2-
+do_stuff | cut -c 2-
 </codesample>
 
 <p>

diff --git a/tools-reference/head-and-tail/text.xml 
b/tools-reference/head-and-tail/text.xml
index 44f0264..f34686a 100644
--- a/tools-reference/head-and-tail/text.xml
+++ b/tools-reference/head-and-tail/text.xml
@@ -32,8 +32,8 @@ file. The <c>-n</c> argument specifies how many lines to 
display.
 </p>
 
 <p>
-To specify "the last five lines", use <c>tail -n5</c>. To specify "all
-but the first five lines", use <c>tail -n+6</c>.
+To specify "the last five lines", use <c>tail -n 5</c>. To specify "all
+but the first five lines", use <c>tail -n +6</c>.
 </p>
 
 <codesample lang="ebuild">

Reply via email to