TechWhirl (TECHWR-L) is a resource for technical writing and technical communications professionals of all experience levels and in all industries to share their experiences and acquire information.
For two decades, technical communicators have turned to TechWhirl to ask and answer questions about the always-changing world of technical communications, such as tools, skills, career paths, methodologies, and emerging industries. The TechWhirl Archives and magazine, created for, by and about technical writers, offer a wealth of knowledge to everyone with an interest in any aspect of technical communications.
Re: documenting Unix command lines; more than one line
Subject:Re: documenting Unix command lines; more than one line From:figmo -at- RAHUL -dot- NET Date:Tue, 9 Sep 1997 19:48:31 -0700
Stephen D. Martin wrote:
>
>Alexia Prendergast wrote:
>
>> Yes, I'm aware of that -- but that wasn't the original question.
>> The question was how to format one line that the user enters
>> at once, not break it up into several lines for the user to enter
>> one-at-a-time. (At least, that was my understanding, but I could
>> very well have misunderstood ;-)
>
>Regardless of the question I think indenting is superior to the
>backslash. The Unix "power user" (synonym for geek?), shouldn't need
>the manual at all (grin), or at least should be able to recognize that
>the second line of text is not a distinct command line (especially with
>all that white space ahead of it).
>
>One should also think of the non-power user, the poor smuck who'll end
>up typing in that backslash, and who'll end up getting an
>incomprehensible error message. Assuming that Jen and Eric User do try
>to type the indented line as a distinct command, they are more likely to
>get a helpful error message.
Begging your pardon, but the non-power user who types that backslash will
have the right thing happen for them.
In the UNIX shells, the backslash character signifies the command is
continued on the next line. Thus, entering:
TECHWR-L (Technical Communication) List Information: To send a message
to 2500+ readers, e-mail to TECHWR-L -at- LISTSERV -dot- OKSTATE -dot- EDU -dot- Send commands
to LISTSERV -at- LISTSERV -dot- OKSTATE -dot- EDU (e.g. HELP or SIGNOFF TECHWR-L).
Search the archives at http://www.documentation.com/ or search and
browse the archives at http://listserv.okstate.edu/archives/techwr-l.html