summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2003-09-02 18:09:44 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2003-09-02 18:09:44 +0000
commit305927e1e8686ba30e8826f776dc8a0da4b4ee6e (patch)
treebd511eb2232c25d475e18b9e42fc627f28ed7619
parent19f0226468354b35e700ee241500e85bd0673028 (diff)
escape punctuation;
ok deraadt@
-rw-r--r--bin/csh/csh.134
-rw-r--r--bin/ed/ed.122
-rw-r--r--bin/ksh/ksh.126
-rw-r--r--bin/ksh/ksh.1tbl26
-rw-r--r--bin/ksh/sh.120
-rw-r--r--bin/ksh/sh.1tbl20
-rw-r--r--bin/ls/ls.14
7 files changed, 76 insertions, 76 deletions
diff --git a/bin/csh/csh.1 b/bin/csh/csh.1
index 6131a142a11..edbc06330d4 100644
--- a/bin/csh/csh.1
+++ b/bin/csh/csh.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: csh.1,v 1.48 2003/06/23 16:42:15 deraadt Exp $
+.\" $OpenBSD: csh.1,v 1.49 2003/09/02 18:09:43 jmc Exp $
.\" $NetBSD: csh.1,v 1.10 1995/03/21 09:02:35 cgd Exp $
.\"
.\" Copyright (c) 1980, 1990, 1993
@@ -557,19 +557,19 @@ of new commands, making it easy to repeat commands, repeat arguments
of a previous command in the current command, or fix spelling mistakes
in the previous command with little typing and a high degree of confidence.
History substitutions begin with the character
-.Ql !
+.Ql \&!
and may begin
.Em anywhere
in the input stream (with the proviso that they do
.Em not
nest).
This
-.Ql !
+.Ql \&!
may be preceded by a
.Ql \e
to prevent its special meaning; for
convenience, a
-.Ql !
+.Ql \&!
character is passed unchanged when it is followed by a blank,
tab, newline,
.Ql =
@@ -604,7 +604,7 @@ command:
The commands are shown with their event numbers.
It is not usually necessary to use event numbers, but the current event
number can be made part of the prompt by placing a
-.Ql !
+.Ql \&!
in the prompt string.
.Pp
With the current event 13 we can refer to previous events by event
@@ -653,7 +653,7 @@ first argument; i.e.,
last argument
.It %
word matched by (immediately preceding)
-.No \&? Ns Ar s Ns \&?
+.No \&? Ns Ar s Ns ?\&
search
.It Ar \&x\-y
range of words
@@ -766,7 +766,7 @@ in
.Ql !? Ns Ar s Ns \e? .
The trailing delimiter in the substitution may be omitted if a newline
follows immediately as may the trailing
-.Ql ?
+.Ql \&?
in a contextual scan.
.Pp
A history reference may be given without an event specification; e.g.,
@@ -1102,7 +1102,7 @@ only part of a word, even if the command outputs a complete line.
.Ss Filename substitution
If a word contains any of the characters
.Ql * ,
-.Ql ? ,
+.Ql \&? ,
.Ql [ ,
or
.Ql { ,
@@ -1118,7 +1118,7 @@ no pattern to match an existing file name, but it is not required
for each pattern to match.
Only the metacharacters
.Ql * ,
-.Ql ? ,
+.Ql \&? ,
and
.Ql [
imply pattern matching,
@@ -1141,7 +1141,7 @@ The character
matches any string of characters, including the null
string.
The character
-.Ql ?
+.Ql \&?
matches any single character.
The sequence
.Dq Op ...
@@ -1267,7 +1267,7 @@ terminal or
or an error results.
This helps prevent accidental destruction of files.
Here, the
-.Ql !
+.Ql \&!
forms can be used to suppress this check.
.Pp
The forms involving
@@ -1292,7 +1292,7 @@ If the variable
.Va noclobber
is set, then it is an error for the file not to exist unless
one of the
-.Ql !
+.Ql \&!
forms is given.
Otherwise similar to
.Ql > .
@@ -1654,7 +1654,7 @@ command
to terminate it prematurely.
When this command is read from the terminal, the loop is read once
prompting with
-.Ql ?
+.Ql \&?
before any statements in the loop are executed.
If you make a mistake typing in a loop at the terminal you can rub it out.
.Pp
@@ -2161,7 +2161,7 @@ Each case label is successively matched against the specified
which is first command and filename expanded.
The file metacharacters
.Ql * ,
-.Ql ?
+.Ql \&?
and
.Dq [...]
may be used in the case labels,
@@ -2405,7 +2405,7 @@ Can be given a string value to change the characters used in history
substitution.
The first character of its value is used as the
history substitution character, replacing the default character
-.Ql ! .
+.Ql \&! .
The second character of its value replaces the character
.Ql ^
in quick substitutions.
@@ -2513,7 +2513,7 @@ or the commands may not be found.
The string that is printed before each command is read from
an interactive terminal input.
If a
-.Ql !
+.Ql \&!
appears in the string it will be replaced by the current event number
unless a preceding
.Ql \e
@@ -2756,7 +2756,7 @@ Alias substitution is most often used to clumsily simulate shell procedures;
shell procedures should be provided instead of aliases.
.Pp
Commands within loops, prompted for by
-.Ql ? ,
+.Ql \&? ,
are not placed on the
.Ic history
list.
diff --git a/bin/ed/ed.1 b/bin/ed/ed.1
index 494b5e73fe1..4473d09145a 100644
--- a/bin/ed/ed.1
+++ b/bin/ed/ed.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: ed.1,v 1.42 2003/07/27 13:25:43 jmc Exp $
+.\" $OpenBSD: ed.1,v 1.43 2003/09/02 18:09:43 jmc Exp $
.\"
.\" Copyright (c) 1993 Andrew Moore, Talke Studio.
.\" All rights reserved.
@@ -260,12 +260,12 @@ The search wraps to the beginning of the buffer and continues down to the
current line, if necessary.
.Em //
repeats the last search.
-.It Em ? Ns No re Ns Em ?
+.It Em \&? Ns No re Ns Em \&?
The previous line containing the regular expression
.Em re .
The search wraps to the end of the buffer and continues up to the
current line, if necessary.
-.Em ??
+.Em ??\&
repeats the last search.
.It Em \&\' Ns No lc
The line previously marked by a
@@ -502,8 +502,8 @@ The current address is set to the last line read.
Edits the standard output of
.Em !command Ns No ,
(see
-.Em ! No command
-below).
+.Em !\&
+command below).
The default filename is unchanged.
Any lines in the buffer are deleted before the output of
.Em command
@@ -651,7 +651,7 @@ The current address is set to the last line read.
Reads to after the addressed line the standard output of
.Em !command Ns No ,
(see the
-.Em !
+.Em !\&
command below).
The default filename is unchanged.
The current address is set to the last line read.
@@ -796,7 +796,7 @@ command.
Writes the addressed lines to the standard input of
.Em !command Ns No ,
(see the
-.Em !
+.Em !\&
command below).
The default filename and current address are unchanged.
.It (1,$) Ns Em W No file
@@ -825,7 +825,7 @@ The current address is set to the last line printed.
Prints the line number of the addressed line.
.It (.+1) Ns Em newline
Prints the addressed line, and sets the current address to that line.
-.It Em ! Ns No command
+.It Em \&! Ns No command
Executes
.Em command
via
@@ -833,7 +833,7 @@ via
If the first character of
.Em command
is
-.Em ! Ns No ,
+.Em \&! Ns No ,
then it is replaced by text of the previous
.Em !command Ns No .
.Nm
@@ -846,7 +846,7 @@ However, an unescaped
.Em %
is replaced by the default filename.
When the shell returns from execution, a
-.Em !
+.Em !\&
is printed to the standard output.
The current line is unchanged.
.El
@@ -879,7 +879,7 @@ attempts to write the buffer if the terminal hangs up
When an error occurs,
.Nm
prints a
-.Dq ?
+.Dq \&?
and either returns to command mode or exits if its input is from a script.
An explanation of the last error can be printed with the
.Em h
diff --git a/bin/ksh/ksh.1 b/bin/ksh/ksh.1
index f497434e228..c93ccaee4cb 100644
--- a/bin/ksh/ksh.1
+++ b/bin/ksh/ksh.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: ksh.1,v 1.56 2003/09/01 15:47:40 naddy Exp $
+.\" $OpenBSD: ksh.1,v 1.57 2003/09/02 18:09:43 jmc Exp $
.\"
.\" Copyright (c) 1980, 1990, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -284,7 +284,7 @@ shell and must be quoted if they are to represent themselves:
.Ql { ,
.Ql } ,
.Ql * ,
-.Ql ? ,
+.Ql \&? ,
and
.Ql [ .
The first three of these are the above mentioned quoting characters (see
@@ -317,7 +317,7 @@ style alterations (see
below);
and finally,
.Ql * ,
-.Ql ? ,
+.Ql \&? ,
and
.Ql [
are used in file name generation (see
@@ -373,7 +373,7 @@ last is piped (see
to the standard input of the following command.
The exit status of a pipeline is that of its last command.
A pipeline may be prefixed by the
-.Ql !
+.Ql \&!
reversed word which causes the exit status of the pipeline to be logically
complemented: if the original status was 0 the complemented status will be 1;
if the original status was not 0, the complemented status will be 0.
@@ -1446,7 +1446,7 @@ The default is 600 (10 minutes).
.It Ev MAILPATH
A list of files to be checked for mail.
The list is colon separated, and each file may be followed by a
-.Ql ?
+.Ql \&?
and a message to be printed if new mail has arrived.
Command, parameter and
arithmetic substitution is performed on the message, and, during substitution,
@@ -1491,12 +1491,12 @@ The process ID of the shell's parent (read-only).
The primary prompt for interactive shells.
Parameter, command, and arithmetic
substitutions are performed, and
-.Ql !
+.Ql \&!
is replaced with the current command number (see
.Ic fc
command below).
A literal
-.Ql !
+.Ql \&!
can be put in the prompt by placing
.Ql !!
in
@@ -1663,7 +1663,7 @@ Brace expansion is carried out after parameter substitution
and before file name generation.
.Ss File name patterns
A file name pattern is a word containing one or more unquoted
-.Ql ?
+.Ql \&?
or
.Ql *
characters or
@@ -1696,7 +1696,7 @@ Similarly, a
must be quoted or the first character in the list if it is to represent itself
instead of the end of the list.
Also, a
-.Ql !
+.Ql \&!
appearing at the start of the list has special meaning (see below), so to
represent itself it must be quoted or appear later in the list.
.It Ic \&[\&! Ns No .. Ns Ic \&]
@@ -3560,7 +3560,7 @@ is set (see
.Ic set
command above for a list of options).
As a non-standard extension, if the option starts with a
-.Ql ! ,
+.Ql \&! ,
the test is negated; the test always fails if
.Ar option
doesn't exist (thus
@@ -3674,15 +3674,15 @@ arguments to
or
.Ic \&[ ... \&]
is less than five; if leading
-.Ql !
+.Ql \&!
arguments can be stripped such that only one argument remains then a string
length test is performed (again, even if the argument is a unary operator); if
leading
-.Ql !
+.Ql \&!
arguments can be stripped such that three arguments remain and the second
argument is a binary operator, then the binary operation is performed (even
if the first argument is a unary operator, including an unstripped
-.Ql ! ) .
+.Ql \&! ) .
.Pp
.Sy Note:
A common mistake is to use
diff --git a/bin/ksh/ksh.1tbl b/bin/ksh/ksh.1tbl
index c710728bef7..0ac79dcb334 100644
--- a/bin/ksh/ksh.1tbl
+++ b/bin/ksh/ksh.1tbl
@@ -1,4 +1,4 @@
-.\" $OpenBSD: ksh.1tbl,v 1.56 2003/09/01 15:47:40 naddy Exp $
+.\" $OpenBSD: ksh.1tbl,v 1.57 2003/09/02 18:09:43 jmc Exp $
.\"
.\" Copyright (c) 1980, 1990, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -284,7 +284,7 @@ shell and must be quoted if they are to represent themselves:
.Ql { ,
.Ql } ,
.Ql * ,
-.Ql ? ,
+.Ql \&? ,
and
.Ql [ .
The first three of these are the above mentioned quoting characters (see
@@ -317,7 +317,7 @@ style alterations (see
below);
and finally,
.Ql * ,
-.Ql ? ,
+.Ql \&? ,
and
.Ql [
are used in file name generation (see
@@ -373,7 +373,7 @@ last is piped (see
to the standard input of the following command.
The exit status of a pipeline is that of its last command.
A pipeline may be prefixed by the
-.Ql !
+.Ql \&!
reversed word which causes the exit status of the pipeline to be logically
complemented: if the original status was 0 the complemented status will be 1;
if the original status was not 0, the complemented status will be 0.
@@ -1446,7 +1446,7 @@ The default is 600 (10 minutes).
.It Ev MAILPATH
A list of files to be checked for mail.
The list is colon separated, and each file may be followed by a
-.Ql ?
+.Ql \&?
and a message to be printed if new mail has arrived.
Command, parameter and
arithmetic substitution is performed on the message, and, during substitution,
@@ -1491,12 +1491,12 @@ The process ID of the shell's parent (read-only).
The primary prompt for interactive shells.
Parameter, command, and arithmetic
substitutions are performed, and
-.Ql !
+.Ql \&!
is replaced with the current command number (see
.Ic fc
command below).
A literal
-.Ql !
+.Ql \&!
can be put in the prompt by placing
.Ql !!
in
@@ -1663,7 +1663,7 @@ Brace expansion is carried out after parameter substitution
and before file name generation.
.Ss File name patterns
A file name pattern is a word containing one or more unquoted
-.Ql ?
+.Ql \&?
or
.Ql *
characters or
@@ -1696,7 +1696,7 @@ Similarly, a
must be quoted or the first character in the list if it is to represent itself
instead of the end of the list.
Also, a
-.Ql !
+.Ql \&!
appearing at the start of the list has special meaning (see below), so to
represent itself it must be quoted or appear later in the list.
.It Ic \&[\&! Ns No .. Ns Ic \&]
@@ -3560,7 +3560,7 @@ is set (see
.Ic set
command above for a list of options).
As a non-standard extension, if the option starts with a
-.Ql ! ,
+.Ql \&! ,
the test is negated; the test always fails if
.Ar option
doesn't exist (thus
@@ -3674,15 +3674,15 @@ arguments to
or
.Ic \&[ ... \&]
is less than five; if leading
-.Ql !
+.Ql \&!
arguments can be stripped such that only one argument remains then a string
length test is performed (again, even if the argument is a unary operator); if
leading
-.Ql !
+.Ql \&!
arguments can be stripped such that three arguments remain and the second
argument is a binary operator, then the binary operation is performed (even
if the first argument is a unary operator, including an unstripped
-.Ql ! ) .
+.Ql \&! ) .
.Pp
.Sy Note:
A common mistake is to use
diff --git a/bin/ksh/sh.1 b/bin/ksh/sh.1
index a82161ec252..fda640b99bf 100644
--- a/bin/ksh/sh.1
+++ b/bin/ksh/sh.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: sh.1,v 1.34 2003/07/07 14:11:58 jmc Exp $
+.\" $OpenBSD: sh.1,v 1.35 2003/09/02 18:09:43 jmc Exp $
.\"
.\" Copyright (c) 1980, 1990, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -275,7 +275,7 @@ shell and must be quoted if they are to represent themselves:
.Ql { ,
.Ql } ,
.Ql * ,
-.Ql ? ,
+.Ql \&? ,
and
.Ql [ .
The first three of these are the above mentioned quoting characters (see
@@ -308,7 +308,7 @@ style alterations (see
below);
and finally,
.Ql * ,
-.Ql ? ,
+.Ql \&? ,
and
.Ql [
are used in file name generation (see
@@ -364,7 +364,7 @@ last is piped (see
to the standard input of the following command.
The exit status of a pipeline is that of its last command.
A pipeline may be prefixed by the
-.Ql !
+.Ql \&!
reversed word which causes the exit status of the pipeline to be logically
complemented: if the original status was 0 the complemented status will be 1;
if the original status was not 0, the complemented status will be 0.
@@ -1324,7 +1324,7 @@ command may be used to list, change, and add to this cache (e.g.,
.Ic alias -d fac=/usr/local/facilities; cd ~fac/bin ) .
.Ss File name patterns
A file name pattern is a word containing one or more unquoted
-.Ql ?
+.Ql \&?
or
.Ql *
characters or
@@ -1357,7 +1357,7 @@ Similarly, a
must be quoted or the first character in the list if it is to represent itself
instead of the end of the list.
Also, a
-.Ql !
+.Ql \&!
appearing at the start of the list has special meaning (see below), so to
represent itself it must be quoted or appear later in the list.
.It Ic \&[\&! Ns No .. Ns Ic \&]
@@ -3066,7 +3066,7 @@ is set (see
.Ic set
command above for a list of options).
As a non-standard extension, if the option starts with a
-.Ql ! ,
+.Ql \&! ,
the test is negated; the test always fails if
.Ar option
doesn't exist (thus
@@ -3168,15 +3168,15 @@ arguments to
or
.Ic \&[ ... \&]
is less than five; if leading
-.Ql !
+.Ql \&!
arguments can be stripped such that only one argument remains then a string
length test is performed (again, even if the argument is a unary operator); if
leading
-.Ql !
+.Ql \&!
arguments can be stripped such that three arguments remain and the second
argument is a binary operator, then the binary operation is performed (even
if the first argument is a unary operator, including an unstripped
-.Ql ! ) .
+.Ql \&! ) .
.Pp
.Sy Note:
A common mistake is to use
diff --git a/bin/ksh/sh.1tbl b/bin/ksh/sh.1tbl
index b564117a55f..9bfbc50ca98 100644
--- a/bin/ksh/sh.1tbl
+++ b/bin/ksh/sh.1tbl
@@ -1,4 +1,4 @@
-.\" $OpenBSD: sh.1tbl,v 1.34 2003/07/07 14:11:58 jmc Exp $
+.\" $OpenBSD: sh.1tbl,v 1.35 2003/09/02 18:09:43 jmc Exp $
.\"
.\" Copyright (c) 1980, 1990, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -275,7 +275,7 @@ shell and must be quoted if they are to represent themselves:
.Ql { ,
.Ql } ,
.Ql * ,
-.Ql ? ,
+.Ql \&? ,
and
.Ql [ .
The first three of these are the above mentioned quoting characters (see
@@ -308,7 +308,7 @@ style alterations (see
below);
and finally,
.Ql * ,
-.Ql ? ,
+.Ql \&? ,
and
.Ql [
are used in file name generation (see
@@ -364,7 +364,7 @@ last is piped (see
to the standard input of the following command.
The exit status of a pipeline is that of its last command.
A pipeline may be prefixed by the
-.Ql !
+.Ql \&!
reversed word which causes the exit status of the pipeline to be logically
complemented: if the original status was 0 the complemented status will be 1;
if the original status was not 0, the complemented status will be 0.
@@ -1324,7 +1324,7 @@ command may be used to list, change, and add to this cache (e.g.,
.Ic alias -d fac=/usr/local/facilities; cd ~fac/bin ) .
.Ss File name patterns
A file name pattern is a word containing one or more unquoted
-.Ql ?
+.Ql \&?
or
.Ql *
characters or
@@ -1357,7 +1357,7 @@ Similarly, a
must be quoted or the first character in the list if it is to represent itself
instead of the end of the list.
Also, a
-.Ql !
+.Ql \&!
appearing at the start of the list has special meaning (see below), so to
represent itself it must be quoted or appear later in the list.
.It Ic \&[\&! Ns No .. Ns Ic \&]
@@ -3066,7 +3066,7 @@ is set (see
.Ic set
command above for a list of options).
As a non-standard extension, if the option starts with a
-.Ql ! ,
+.Ql \&! ,
the test is negated; the test always fails if
.Ar option
doesn't exist (thus
@@ -3168,15 +3168,15 @@ arguments to
or
.Ic \&[ ... \&]
is less than five; if leading
-.Ql !
+.Ql \&!
arguments can be stripped such that only one argument remains then a string
length test is performed (again, even if the argument is a unary operator); if
leading
-.Ql !
+.Ql \&!
arguments can be stripped such that three arguments remain and the second
argument is a binary operator, then the binary operation is performed (even
if the first argument is a unary operator, including an unstripped
-.Ql ! ) .
+.Ql \&! ) .
.Pp
.Sy Note:
A common mistake is to use
diff --git a/bin/ls/ls.1 b/bin/ls/ls.1
index 63c8d3db634..b8d03510ed1 100644
--- a/bin/ls/ls.1
+++ b/bin/ls/ls.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: ls.1,v 1.38 2003/08/27 08:06:49 jmc Exp $
+.\" $OpenBSD: ls.1,v 1.39 2003/09/02 18:09:43 jmc Exp $
.\" $NetBSD: ls.1,v 1.14 1995/12/05 02:44:01 jtc Exp $
.\"
.\" Copyright (c) 1980, 1990, 1991, 1993, 1994
@@ -162,7 +162,7 @@ immediately after each pathname that is a directory.
.It Fl q
Force printing of non-graphic characters in file names as
the character
-.Dq ? ;
+.Sq \&? ;
this is the default when output is to a terminal.
.It Fl r
Reverse the order of the sort to get reverse