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.)
| Benjamin Herrenschmidt | Re: [linux-pm] [PATCH] Remove process freezer from suspend to RAM pathway |
| Ulrich Drepper | Re: [patch 7/8] fdmap v2 - implement sys_socket2 |
| Washington Odhiambo | Weird Problem with NAT - more details |
| Greg Kroah-Hartman | [PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO |
git: | |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| Frans Pop | svc: failed to register lockdv1 RPC service (errno 97). |
| Jarek Poplawski | [PATCH take 2] pkt_sched: Protect gen estimators under est_lock. |
| David Miller | Re: [GIT]: Networking |
