~ubuntu-branches/ubuntu/trusty/mh-book/trusty

« back to all changes in this revision

Viewing changes to mh/wiabnab.htm

  • Committer: Bazaar Package Importer
  • Author(s): Peter S Galbraith
  • Date: 2001-03-26 12:42:56 UTC
  • Revision ID: james.westby@ubuntu.com-20010326124256-philz6gf517qz8bo
Tags: upstream-9910
ImportĀ upstreamĀ versionĀ 9910

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<HTML>
 
2
<HEAD>
 
3
<META NAME="Author" CONTENT="Jerry Peek">
 
4
<TITLE>MH &amp; nmh: When Is a Backslash Not a Backslash?</TITLE>
 
5
</HEAD>
 
6
<!-- $Id: wiabnab.htm,v 6.0 1999/10/10 05:14:05 jpeek Exp $ -->
 
7
 
 
8
<BODY BGCOLOR="#FFFFFF">
 
9
<A NAME="index1"></A>
 
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>]
 
13
<P>
 
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:
 
17
<UL>
 
18
<LI>
 
19
When you're typing a line of input on a terminal and you want to tell UNIX that
 
20
"this next
 
21
RETURN
 
22
I'm going to type is not the end of the line," you'll often
 
23
type a backslash just before the
 
24
RETURN.
 
25
That happened in the previous example, where you wanted to tell <I>prompter</I>
 
26
that the next
 
27
RETURN
 
28
key you pressed would not be the end of the field.
 
29
Backslashes are often typed before a
 
30
RETURN,
 
31
<B>to continue a line</B>.
 
32
<LI>
 
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.
 
38
<P>
 
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."
 
44
<LI>
 
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:
 
50
<PRE>
 
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.
 
54
</PRE>
 
55
In that case, the backslash is not really in the file that Emacs
 
56
is showing;
 
57
it's just a signal to you that the line continues.
 
58
</UL>
 
59
 
 
60
<P ALIGN=CENTER>
 
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>]
 
63
</P>
 
64
<HR>
 
65
<EM>Last change $Date: 1999/10/10 05:14:05 $</EM>
 
66
<P>
 
67
This file is from the third edition of the book <I>MH &amp; xmh: Email
 
68
for Users &amp; Programmers</I>, ISBN 1-56592-093-7, by Jerry Peek.
 
69
Copyright &copy; 1991, 1992, 1995 by O'Reilly &amp; 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>.
 
74
<P>
 
75
<ADDRESS>
 
76
Suggestions are welcome:
 
77
<A HREF="http://www.jpeek.com/">Jerry Peek</A>
 
78
<A HREF="mailto:jpeek@jpeek.com">&lt;jpeek@jpeek.com&gt;</A>
 
79
</ADDRESS>
 
80
</BODY>
 
81
</HTML>