3
<META NAME="Author" CONTENT="Jerry Peek">
4
<TITLE>MH & nmh: When Is a Backslash Not a Backslash?</TITLE>
6
<!-- $Id: wiabnab.htm,v 6.0 1999/10/10 05:14:05 jpeek Exp $ -->
8
<BODY BGCOLOR="#FFFFFF">
10
<H1>When Is a Backslash Not a Backslash?</H1>
11
[<A HREF="senove.htm#wiabnab">return-to: Overview: Sending MH Messages</A>]
12
[<A HREF="tocs/jump.htm">table of contents</A>] [<A HREF="indexes/map.htm">index</A>]
14
UNIX uses the backslash character (<TT>\</TT>) in a lot of places,
15
which can be confusing for beginners.
16
Here's a guide to backslashes:
19
When you're typing a line of input on a terminal and you want to tell UNIX that
22
I'm going to type is not the end of the line," you'll often
23
type a backslash just before the
25
That happened in the previous example, where you wanted to tell <I>prompter</I>
28
key you pressed would not be the end of the field.
29
Backslashes are often typed before a
31
<B>to continue a line</B>.
33
Backslashes are also used when you're <B>typing special characters</B>.
34
For instance, some versions of UNIX use the at sign (<TT>@</TT>) character
35
as the "line kill" character.
36
That means when you type an <TT>@</TT> on your terminal, you're telling
37
UNIX to forget everything you've typed so far on that line and start over.
39
Sometimes -- when you're typing a mail address like <TT>vicki@squidbait</TT>,
40
for example, you want a literal <TT>@</TT> character.
41
You don't want the <TT>@</TT> to erase the word "vicki."
42
On those UNIX systems, you'd type <TT>vicki\@squidbait</TT> to tell UNIX,
43
"Treat this next <TT>@</TT> literally."
45
When some UNIX programs <B>display on a terminal</B> and a line is too long
46
to fit on the screen, they split the line into pieces and show a backslash
47
(<TT>\</TT>) at the end of each piece of the line except the last.
48
One example is the GNU Emacs editor.
49
GNU Emacs will display a very long line this way:
51
This is the first part of the very long line etc. etc. \
52
and... this is the second part blah blah blah etc. etc.\
53
and now this is finally the end of the line.
55
In that case, the backslash is not really in the file that Emacs
57
it's just a signal to you that the line continues.
61
[<A HREF="tocs/jump.htm">Table of Contents</A>] [<A HREF="indexes/map.htm">Index</A>]
62
[<A HREF="senove.htm#wiabnab">Return to: Overview: Sending MH Messages</A>]
65
<EM>Last change $Date: 1999/10/10 05:14:05 $</EM>
67
This file is from the third edition of the book <I>MH & xmh: Email
68
for Users & Programmers</I>, ISBN 1-56592-093-7, by Jerry Peek.
69
Copyright © 1991, 1992, 1995 by O'Reilly & Associates, Inc.
70
This file is freely available; you can redistribute it and/or modify
71
it under the terms of the GNU General Public License as published by
72
the Free Software Foundation. For more information, see
73
<A HREF="../copying.htm">the file <I>copying.htm</I></A>.
76
Suggestions are welcome:
77
<A HREF="http://www.jpeek.com/">Jerry Peek</A>
78
<A HREF="mailto:jpeek@jpeek.com"><jpeek@jpeek.com></A>