Error in softraid documentation?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <misc@...>
Date: Saturday, January 26, 2008 - 10:11 pm

I recently noticed that the examples in the softraid man page

http://www.openbsd.org/cgi-bin/man.cgi?query=softraid

contain many lines such as

echo "d a\na\n\n\n\nRAID\nw\nq\n" | disklabel -E wd1

Of course, not every version of echo interprets "\n" as a newline. In
fact, /bin/echo treats "\n" as a literal backslash followed by a literal
n. The version of echo that is built into csh also interprets it as a
literal backslash followed by a literal n. But the softraid man page
certainly intends it to be interpreted as a newline.

So, is the man page in error? Or are the examples in man pages only
intended for use in the default shell? (Note that ksh is the default
shell, and ksh has a built-in echo command that interprets "\n" as a
newline.)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Error in softraid documentation?, Matthew Szudzik, (Sat Jan 26, 10:11 pm)
Re: Error in softraid documentation?, Philip Guenther, (Mon Jan 28, 9:49 pm)
Re: Error in softraid documentation?, Jason McIntyre, (Mon Jan 28, 9:49 pm)
Re: Error in softraid documentation?, Jason McIntyre, (Tue Jan 29, 6:28 am)
Re: Error in softraid documentation?, Marco Peereboom, (Mon Jan 28, 10:13 pm)