Hello,
Editor commands for disklabel can be properly terminated with just "q\n"
and do not require the additional newline. The second "\n" was included
when printf replaced echo, which had been adding an extra by default.
It appears that disklabel will even interpret the last command with zero
trailing newlines, but leaving one is probably better for consistency.
First diff submission; any criticism welcome.

Index: softraid.4
===================================================================
RCS file: /cvs/src/share/man/man4/softraid.4,v
retrieving revision 1.41
diff -u -p -r1.41 softraid.4
--- softraid.4 14 Apr 2015 19:10:13 -0000 1.41
+++ softraid.4 26 Jun 2017 14:24:45 -0000
@@ -128,9 +128,9 @@ Initialize the partition tables of all d
.Pp
Now create RAID partitions on all disks:
.Bd -literal -offset indent
-# printf "a\en\en\en\enRAID\enw\enq\en\en" | disklabel -E wd1
-# printf "a\en\en\en\enRAID\enw\enq\en\en" | disklabel -E wd2
-# printf "a\en\en\en\enRAID\enw\enq\en\en" | disklabel -E wd3
+# printf "a\en\en\en\enRAID\enw\enq\en" | disklabel -E wd1
+# printf "a\en\en\en\enRAID\enw\enq\en" | disklabel -E wd2
+# printf "a\en\en\en\enRAID\enw\enq\en" | disklabel -E wd3
.Ed
.Pp
Assemble the RAID volume:
@@ -154,7 +154,7 @@ Initialize the partition table and creat
new RAID volume:
.Bd -literal -offset indent
# fdisk -iy sd0
-# printf "a\en\en\en\en4.2BSD\enw\enq\en\en" | disklabel -E sd0
+# printf "a\en\en\en\en4.2BSD\enw\enq\en" | disklabel -E sd0
# newfs /dev/rsd0a
.Ed
.Pp

Reply via email to