Deal with double whitespace.

This commit is contained in:
Ruslan Ermilov 2004-07-03 00:24:45 +00:00
parent bac7835b60
commit 557b7fa148
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=131507
31 changed files with 112 additions and 110 deletions

View file

@ -99,7 +99,7 @@ to
.Pa /usr/bin . .Pa /usr/bin .
.Pp .Pp
.Dl FOO=`dirname /usr/bin/trail` .Dl FOO=`dirname /usr/bin/trail`
.Sh DIAGNOSTICS .Sh DIAGNOSTICS
.Ex -std basename dirname .Ex -std basename dirname
.Sh SEE ALSO .Sh SEE ALSO
.Xr csh 1 , .Xr csh 1 ,

View file

@ -217,9 +217,9 @@ Calendar of events in France.
.It Pa calendar.german .It Pa calendar.german
Calendar of events in Germany. Calendar of events in Germany.
.It Pa calendar.history .It Pa calendar.history
Everything else, mostly U.S.\& historical events. Everything else, mostly U.S.\& historical events.
.It Pa calendar.holiday .It Pa calendar.holiday
Other holidays, including the not-well-known, obscure, and Other holidays, including the not-well-known, obscure, and
.Em really .Em really
obscure. obscure.
.It Pa calendar.judaic .It Pa calendar.judaic
@ -227,8 +227,8 @@ Jewish holidays.
This calendar should be updated yearly by the local system administrator This calendar should be updated yearly by the local system administrator
so that roving holidays are set correctly for the current year. so that roving holidays are set correctly for the current year.
.It Pa calendar.music .It Pa calendar.music
Musical events, births, and deaths. Musical events, births, and deaths.
Strongly oriented toward rock 'n' roll. Strongly oriented toward rock 'n' roll.
.It Pa calendar.newzealand .It Pa calendar.newzealand
Calendar of events in New Zealand. Calendar of events in New Zealand.
.It Pa calendar.russian .It Pa calendar.russian

View file

@ -54,7 +54,7 @@ feeds, and replaces white-space characters with tabs where possible.
This can be useful in processing the output of This can be useful in processing the output of
.Xr nroff 1 .Xr nroff 1
and and
.Xr tbl 1 . .Xr tbl 1 .
.Pp .Pp
The The
.Nm .Nm

View file

@ -9,7 +9,7 @@
.Nd easy editor .Nd easy editor
.Sh SYNOPSIS .Sh SYNOPSIS
.Nm .Nm
.Op Fl eih .Op Fl eih
.Op +# .Op +#
.Op Ar .Op Ar
.Nm ree .Nm ree
@ -61,7 +61,7 @@ Move the cursor to line '#' at startup.
To do anything other than insert text, the user must use the control To do anything other than insert text, the user must use the control
keys (the keys (the
.Li Control .Li Control
key, represented by a "^", pressed in conjunction with an key, represented by a "^", pressed in conjunction with an
alphabetic key, e.g., ^a) and function keys available on the keyboard alphabetic key, e.g., ^a) and function keys available on the keyboard
(such as (such as
.Em "Next Page" , .Em "Next Page" ,
@ -313,7 +313,7 @@ Line with no characters, or only spaces and/or tabs.
Line starting with a period ('.') or right angle bracket ('>'). Line starting with a period ('.') or right angle bracket ('>').
.El .El
.Pp .Pp
A paragraph may be formatted two ways: explicitly by choosing the A paragraph may be formatted two ways: explicitly by choosing the
.Em format paragraph .Em format paragraph
menu item, or by setting menu item, or by setting
.Nm .Nm

View file

@ -101,7 +101,7 @@ possible for them to disappear while
.Nm .Nm
is running. is running.
This This
is normal and unavoidable since the rest of the system is running while is normal and unavoidable since the rest of the system is running while
.Nm .Nm
itself is running. itself is running.
.It Ar .It Ar

View file

@ -49,7 +49,7 @@ The
.Nm .Nm
utility creates a core image of the specified process, utility creates a core image of the specified process,
suitable for use with suitable for use with
.Xr gdb 1 . .Xr gdb 1 .
By default, the core is written to the file By default, the core is written to the file
.Dq Pa core.<pid> . .Dq Pa core.<pid> .
The process identifier, The process identifier,

View file

@ -77,7 +77,7 @@ Any string following
a space following the set identifier is treated as a comment. a space following the set identifier is treated as a comment.
If no If no
.Li $set .Li $set
directive is specified in a given source file, all messages will directive is specified in a given source file, all messages will
be located in the default message set NL_SETD. be located in the default message set NL_SETD.
.It Li $del Ar n comment .It Li $del Ar n comment
This line deletes messages from set This line deletes messages from set

View file

@ -108,7 +108,7 @@ Whatever
has. has.
.Pp .Pp
Arguments containing white space or embedded shell metacharacters Arguments containing white space or embedded shell metacharacters
generally will not survive intact; this looks easy to fix but generally will not survive intact; this looks easy to fix but
isn't. isn't.
People trying to fix People trying to fix
.Nm .Nm

View file

@ -109,7 +109,7 @@ time and call counts of the cycle.
.Pp .Pp
Second, a flat profile is given, Second, a flat profile is given,
similar to that provided by similar to that provided by
.Xr prof 1 . .Xr prof 1 .
This listing gives the total execution times, the call counts, This listing gives the total execution times, the call counts,
the time in msec or usec the call spent in the routine itself, and the time in msec or usec the call spent in the routine itself, and
the time in msec or usec the call spent in the routine itself including the time in msec or usec the call spent in the routine itself including
@ -153,7 +153,7 @@ option.
Suppress the printing of the graph profile entry for routine Suppress the printing of the graph profile entry for routine
.Ar name .Ar name
(and its descendants) as (and its descendants) as
.Fl e , .Fl e ,
above, and also excludes the time spent in above, and also excludes the time spent in
.Ar name .Ar name
(and its descendants) from the total and percentage time computations. (and its descendants) from the total and percentage time computations.
@ -320,6 +320,6 @@ propagated properly, unless the signal catcher was invoked during
the execution of the profiling routine, in which case all is lost. the execution of the profiling routine, in which case all is lost.
.Pp .Pp
The profiled program must call The profiled program must call
.Xr exit 3 .Xr exit 3
or return normally for the profiling information to be saved or return normally for the profiling information to be saved
in the graph profile file. in the graph profile file.

View file

@ -99,9 +99,9 @@ specified are described below.
They may appear before or after the file They may appear before or after the file
names. names.
.Pp .Pp
.Sy NOTE : .Sy NOTE :
If you only specify an If you only specify an
.Ar input-file , .Ar input-file ,
the formatting is the formatting is
done `in-place', that is, the formatted file is written back into done `in-place', that is, the formatted file is written back into
.Ar input-file .Ar input-file
@ -120,7 +120,7 @@ If
is specified, is specified,
.Nm .Nm
checks to make sure it is different from checks to make sure it is different from
.Ar input-file . .Ar input-file .
.Pp .Pp
The options listed below control the formatting style imposed by The options listed below control the formatting style imposed by
.Nm . .Nm .
@ -131,7 +131,7 @@ If
is specified, a blank line is forced after every block of is specified, a blank line is forced after every block of
declarations. declarations.
Default: Default:
.Fl nbad . .Fl nbad .
.It Fl bap , nbap .It Fl bap , nbap
If If
.Fl bap .Fl bap
@ -151,7 +151,7 @@ is specified, then a newline is forced after each comma in a declaration.
.Fl nbc .Fl nbc
turns off this option. turns off this option.
Default: Default:
.Fl \&nbc . .Fl \&nbc .
.It Fl \&br , \&bl .It Fl \&br , \&bl
Specifying Specifying
.Fl \&bl .Fl \&bl
@ -197,15 +197,15 @@ Rather than like this:
This only affects block comments, not comments to the right of This only affects block comments, not comments to the right of
code. code.
The default is The default is
.Fl cdb . .Fl cdb .
.It Fl ce , nce .It Fl ce , nce
Enables (disables) forcing of `else's to cuddle up to the immediately preceding Enables (disables) forcing of `else's to cuddle up to the immediately preceding
`}'. `}'.
The default is The default is
.Fl \&ce . .Fl \&ce .
.It Fl \&ci Ns Ar n .It Fl \&ci Ns Ar n
Sets the continuation indent to be Sets the continuation indent to be
.Ar n . .Ar n .
Continuation Continuation
lines will be indented that far from the beginning of the first line of the lines will be indented that far from the beginning of the first line of the
statement. statement.
@ -216,7 +216,7 @@ is in effect
or the contination indent is exactly half of the main indent. or the contination indent is exactly half of the main indent.
.Fl \&ci .Fl \&ci
defaults to the same value as defaults to the same value as
.Fl i . .Fl i .
.It Fl cli Ns Ar n .It Fl cli Ns Ar n
Causes case labels to be indented Causes case labels to be indented
.Ar n .Ar n
@ -227,7 +227,7 @@ statement.
causes case labels to be indented half a tab stop. causes case labels to be indented half a tab stop.
The The
default is default is
.Fl cli0 . .Fl cli0 .
.It Fl d Ns Ar n .It Fl d Ns Ar n
Controls the placement of comments which are not to the Controls the placement of comments which are not to the
right of code. right of code.
@ -245,14 +245,14 @@ Specifies the indentation, in character positions,
of global variable names and all struct/union member names of global variable names and all struct/union member names
relative to the beginning of their type declaration. relative to the beginning of their type declaration.
The default is The default is
.Fl di16 . .Fl di16 .
.It Fl dj , ndj .It Fl dj , ndj
.Fl \&dj .Fl \&dj
left justifies declarations. left justifies declarations.
.Fl ndj .Fl ndj
indents declarations the same as code. indents declarations the same as code.
The default is The default is
.Fl ndj . .Fl ndj .
.It Fl \&ei , nei .It Fl \&ei , nei
Enables (disables) special Enables (disables) special
.Ic else-if .Ic else-if
@ -265,12 +265,12 @@ will have the same indentation as the preceding
.Ic \&if .Ic \&if
statement. statement.
The default is The default is
.Fl ei . .Fl ei .
.It Fl fbs , nfbs .It Fl fbs , nfbs
Enables (disables) splitting the function declaration and opening brace Enables (disables) splitting the function declaration and opening brace
across two lines. across two lines.
The default is The default is
.Fl fbs . .Fl fbs .
.It Fl fc1 , nfc1 .It Fl fc1 , nfc1
Enables (disables) the formatting of comments that start in column 1. Enables (disables) the formatting of comments that start in column 1.
Often, comments whose leading `/' is in column 1 have been carefully Often, comments whose leading `/' is in column 1 have been carefully
@ -280,7 +280,7 @@ In such cases,
should be should be
used. used.
The default is The default is
.Fl fc1 . .Fl fc1 .
.It Fl fcb , nfcb .It Fl fcb , nfcb
Enables (disables) the formatting of block comments (ones that begin Enables (disables) the formatting of block comments (ones that begin
with `/*\\n'). with `/*\\n').
@ -292,7 +292,7 @@ In such cases,
should be used. should be used.
Block comments are then handled like box comments. Block comments are then handled like box comments.
The default is The default is
.Fl fcb . .Fl fcb .
.It Fl i Ns Ar n .It Fl i Ns Ar n
The number of spaces for one indentation level. The number of spaces for one indentation level.
The default is 8. The default is 8.
@ -300,7 +300,7 @@ The default is 8.
Enables (disables) the indentation of parameter declarations from the left Enables (disables) the indentation of parameter declarations from the left
margin. margin.
The default is The default is
.Fl \&ip . .Fl \&ip .
.It Fl l Ns Ar n .It Fl l Ns Ar n
Maximum length of an output line. Maximum length of an output line.
The default is 78. The default is 78.
@ -351,7 +351,7 @@ If true
all procedure calls will have a space inserted between all procedure calls will have a space inserted between
the name and the `('. the name and the `('.
The default is The default is
.Fl npcs . .Fl npcs .
.It Fl psl , npsl .It Fl psl , npsl
If true If true
.Pq Fl psl .Pq Fl psl
@ -359,12 +359,12 @@ the names of procedures being defined are placed in
column 1 \- their types, if any, will be left on the previous lines. column 1 \- their types, if any, will be left on the previous lines.
The The
default is default is
.Fl psl . .Fl psl .
.It Fl \&sc , nsc .It Fl \&sc , nsc
Enables (disables) the placement of asterisks (`*'s) at the left edge of all Enables (disables) the placement of asterisks (`*'s) at the left edge of all
comments. comments.
The default is The default is
.Fl sc . .Fl sc .
.It Fl sob , nsob .It Fl sob , nsob
If If
.Fl sob .Fl sob
@ -372,7 +372,7 @@ is specified, indent will swallow optional blank lines.
You can use this to You can use this to
get rid of blank lines after declarations. get rid of blank lines after declarations.
Default: Default:
.Fl nsob . .Fl nsob .
.It Fl \&st .It Fl \&st
Causes Causes
.Nm .Nm
@ -413,7 +413,7 @@ rather than formatting in place.
Enables (disables) the use of tab characters in the output. Enables (disables) the use of tab characters in the output.
Tabs are assumed to be aligned on columns divisble by 8. Tabs are assumed to be aligned on columns divisble by 8.
The default is The default is
.Fl ut . .Fl ut .
.It Fl v , \&nv .It Fl v , \&nv
.Fl v .Fl v
turns on `verbose' mode; turns on `verbose' mode;
@ -424,7 +424,7 @@ When in verbose mode,
reports when it splits one line of input into two or more lines of output, reports when it splits one line of input into two or more lines of output,
and gives some size statistics at completion. and gives some size statistics at completion.
The default is The default is
.Fl \&nv . .Fl \&nv .
.El .El
.Pp .Pp
You may set up your own `profile' of defaults to You may set up your own `profile' of defaults to

View file

@ -25,6 +25,6 @@ to be used by any secure network services, such as NFS.
.Xr chkey 1 , .Xr chkey 1 ,
.Xr keylogout 1 , .Xr keylogout 1 ,
.Xr login 1 , .Xr login 1 ,
.Xr publickey 5 , .Xr publickey 5 ,
.Xr keyserv 8 , .Xr keyserv 8 ,
.Xr newkey 8 .Xr newkey 8

View file

@ -102,7 +102,7 @@ executions of commands named
by user by user
.Ar root .Ar root
on the terminal on the terminal
.Ar ttyd0 . .Ar ttyd0 .
.Pp .Pp
For each process entry, the following are printed. For each process entry, the following are printed.
.Pp .Pp

View file

@ -49,7 +49,7 @@
The The
.Nm .Nm
program searches a database for all pathnames which match the specified program searches a database for all pathnames which match the specified
.Ar pattern . .Ar pattern .
The database is recomputed periodically (usually weekly or daily), The database is recomputed periodically (usually weekly or daily),
and contains the pathnames and contains the pathnames
of all files which are publicly accessible. of all files which are publicly accessible.
@ -62,7 +62,7 @@ Shell globbing and quoting characters
and and
.Dq \&] ) .Dq \&] )
may be used in may be used in
.Ar pattern , .Ar pattern ,
although they will have to be escaped from the shell. although they will have to be escaped from the shell.
Preceding any character with a backslash Preceding any character with a backslash
.Pq Dq \e .Pq Dq \e

View file

@ -50,7 +50,7 @@
The The
.Nm .Nm
utility provides a shell command interface to the utility provides a shell command interface to the
.Xr syslog 3 .Xr syslog 3
system log module. system log module.
.Pp .Pp
The following options are available: The following options are available:
@ -94,7 +94,7 @@ facility.
The default is ``user.notice.'' The default is ``user.notice.''
.It Fl t Ar tag .It Fl t Ar tag
Mark every line in the log with the specified Mark every line in the log with the specified
.Ar tag . .Ar tag .
.It Ar message .It Ar message
Write the message to log; if not specified, and the Write the message to log; if not specified, and the
.Fl f .Fl f

View file

@ -67,7 +67,7 @@ logged in user is logging in as themselves.
.It Fl h .It Fl h
Specify the host from which the connection was received. Specify the host from which the connection was received.
It is used by various daemons such as It is used by various daemons such as
.Xr telnetd 8 . .Xr telnetd 8 .
This option may only be used by the super-user. This option may only be used by the super-user.
.It Fl p .It Fl p
By default, By default,

View file

@ -54,7 +54,7 @@ utility outputs a list of file names where the first file contains a symbol
which is defined by the second file. which is defined by the second file.
.Pp .Pp
The output is normally used with The output is normally used with
.Xr tsort 1 .Xr tsort 1
when a library is created to determine the optimum ordering of the when a library is created to determine the optimum ordering of the
object modules so that all references may be resolved in a single object modules so that all references may be resolved in a single
pass of the loader. pass of the loader.

View file

@ -44,7 +44,7 @@
.Sh SYNOPSIS .Sh SYNOPSIS
.Nm .Nm
.Op Fl m Ar mode .Op Fl m Ar mode
.Ar fifo_name ... .Ar fifo_name ...
.Sh DESCRIPTION .Sh DESCRIPTION
The The
.Nm .Nm

View file

@ -227,7 +227,7 @@ is the upper case representation of
.It Dv TODIGIT .It Dv TODIGIT
Defines a map from runes to their digit value. Defines a map from runes to their digit value.
.Dv RUNE2 .Dv RUNE2
is the integer value represented by is the integer value represented by
.Dv RUNE1 . .Dv RUNE1 .
For example, the ASCII character For example, the ASCII character
.Ql 0 .Ql 0

View file

@ -96,7 +96,7 @@ the default ``Messages''.
.It Fl m .It Fl m
A copy of the specified message is placed in a temporary A copy of the specified message is placed in a temporary
mailbox and mailbox and
.Xr mail 1 .Xr mail 1
is invoked on that mailbox. is invoked on that mailbox.
Both `m' and `s' accept a numeric argument in place of the `\-'. Both `m' and `s' accept a numeric argument in place of the `\-'.
.El .El
@ -200,7 +200,7 @@ messages back from the one indicated in the
file, useful for reviews of recent messages. file, useful for reviews of recent messages.
.It Fl p .It Fl p
Pipe long messages through Pipe long messages through
.Xr more 1 . .Xr more 1 .
.El .El
.Pp .Pp
Within Within

View file

@ -53,7 +53,7 @@ By default
performs the requested operation once. performs the requested operation once.
Operations Operations
may be performed multiple times by specifying may be performed multiple times by specifying
.Ar count . .Ar count .
Note Note
that that
.Ar tapename .Ar tapename

View file

@ -95,7 +95,7 @@ The following option is available:
Cause the password to be updated only in the local Cause the password to be updated only in the local
password file, and not with the Kerberos database. password file, and not with the Kerberos database.
When changing only the local password, When changing only the local password,
.Xr pwd_mkdb 8 .Xr pwd_mkdb 8
is used to update the password databases. is used to update the password databases.
.El .El
When changing local or NIS password, the next password change date When changing local or NIS password, the next password change date

View file

@ -43,20 +43,20 @@
.Nd formatted output .Nd formatted output
.Sh SYNOPSIS .Sh SYNOPSIS
.Nm .Nm
.Ar format Op Ar arguments ... .Ar format Op Ar arguments ...
.Sh DESCRIPTION .Sh DESCRIPTION
The The
.Nm .Nm
utility formats and prints its arguments, after the first, under control utility formats and prints its arguments, after the first, under control
of the of the
.Ar format . .Ar format .
The The
.Ar format .Ar format
is a character string which contains three types of objects: plain characters, is a character string which contains three types of objects: plain characters,
which are simply copied to standard output, character escape sequences which which are simply copied to standard output, character escape sequences which
are converted and copied to the standard output, and format specifications, are converted and copied to the standard output, and format specifications,
each of which causes printing of the next successive each of which causes printing of the next successive
.Ar argument . .Ar argument .
.Pp .Pp
The The
.Ar arguments .Ar arguments
@ -77,7 +77,7 @@ code of the next character.
.El .El
.Pp .Pp
The format string is reused as often as necessary to satisfy the The format string is reused as often as necessary to satisfy the
.Ar arguments . .Ar arguments .
Any extra format specifications are evaluated with zero or the null Any extra format specifications are evaluated with zero or the null
string. string.
.Pp .Pp

View file

@ -49,7 +49,7 @@
The The
.Nm .Nm
utility starts a terminal session on a remote host utility starts a terminal session on a remote host
.Ar host . .Ar host .
.Pp .Pp
The The
.Nm .Nm
@ -131,7 +131,7 @@ Each user may have a private authorization list in the file
in their home directory. in their home directory.
Each line in this file should contain a Kerberos principal name of the Each line in this file should contain a Kerberos principal name of the
form form
.Ar principal.instance@realm . .Ar principal.instance@realm .
If the originating user is authenticated to one of the principals named If the originating user is authenticated to one of the principals named
in in
.Pa .klogin , .Pa .klogin ,
@ -144,7 +144,7 @@ there is no
file. file.
Otherwise a login and password will be prompted for on the remote machine Otherwise a login and password will be prompted for on the remote machine
as in as in
.Xr login 1 . .Xr login 1 .
To avoid certain security problems, the To avoid certain security problems, the
.Pa .klogin .Pa .klogin
file must be owned by file must be owned by
@ -195,7 +195,7 @@ IPv6 support was added by WIDE/KAME project.
The The
.Nm .Nm
utility will be replaced by utility will be replaced by
.Xr telnet 1 .Xr telnet 1
in the near future. in the near future.
.Pp .Pp
More of the environment should be propagated. More of the environment should be propagated.

View file

@ -166,7 +166,7 @@ command appeared in
.Bx 4.2 . .Bx 4.2 .
.Sh BUGS .Sh BUGS
If you are using If you are using
.Xr csh 1 .Xr csh 1
and put a and put a
.Nm .Nm
in the background without redirecting its input away from the terminal, in the background without redirecting its input away from the terminal,

View file

@ -59,7 +59,7 @@ is given,
saves all dialogue in saves all dialogue in
.Ar file . .Ar file .
If no file name is given, the typescript is saved in the file If no file name is given, the typescript is saved in the file
.Pa typescript . .Pa typescript .
.Pp .Pp
If the argument If the argument
.Ar command .Ar command

View file

@ -56,9 +56,9 @@ utility does this correctly).
The The
.Nm .Nm
command is normally used for distributing files by command is normally used for distributing files by
.Xr ftp 1 .Xr ftp 1
or or
.Xr mail 1 . .Xr mail 1 .
.Sh SEE ALSO .Sh SEE ALSO
.Xr compress 1 , .Xr compress 1 ,
.Xr mail 1 , .Xr mail 1 ,
@ -79,7 +79,7 @@ It is easy to insert trojan horses into
files. files.
It is strongly recommended that all shell archive files be examined It is strongly recommended that all shell archive files be examined
before running them through before running them through
.Xr sh 1 . .Xr sh 1 .
Archives produced using this implementation of Archives produced using this implementation of
.Nm .Nm
may be easily examined with the command: may be easily examined with the command:
@ -88,11 +88,11 @@ egrep -v '^[X#]' shar.file
.Ed .Ed
.Sh EXAMPLES .Sh EXAMPLES
To create a shell archive of the program To create a shell archive of the program
.Xr ls 1 .Xr ls 1
and mail it to Rick: and mail it to Rick:
.Bd -literal -offset indent .Bd -literal -offset indent
cd ls cd ls
shar `find . -print` \&| mail -s "ls source" rick shar `find . -print` \&| mail -s "ls source" rick
.Ed .Ed
.Pp .Pp
To recreate the program directory: To recreate the program directory:

View file

@ -221,7 +221,7 @@ while the second is an argument to the shell being invoked.
Simulate a login for user foo. Simulate a login for user foo.
.It Li "su - foo" .It Li "su - foo"
Same as above. Same as above.
.It Li "su - " .It Li "su -"
Simulate a login for root. Simulate a login for root.
.El .El
.Sh HISTORY .Sh HISTORY

View file

@ -68,14 +68,14 @@ in the lower window.
Other displays show swap space usage, disk Other displays show swap space usage, disk
.Tn I/O .Tn I/O
statistics (a la statistics (a la
.Xr iostat 8 ) , .Xr iostat 8 ) ,
virtual memory statistics (a la virtual memory statistics (a la
.Xr vmstat 8 ) , .Xr vmstat 8 ) ,
network ``mbuf'' utilization, network ``mbuf'' utilization,
.Tn TCP/IP .Tn TCP/IP
statistics, statistics,
and network connections (a la and network connections (a la
.Xr netstat 1 ) . .Xr netstat 1 ) .
.Pp .Pp
Input is interpreted at two different levels. Input is interpreted at two different levels.
A ``global'' command interpreter processes all keyboard input. A ``global'' command interpreter processes all keyboard input.
@ -156,7 +156,7 @@ value.
Exit Exit
.Nm . .Nm .
(This may be abbreviated to (This may be abbreviated to
.Ic q . ) .Ic q . )
.El .El
.Pp .Pp
The available displays are: The available displays are:
@ -455,7 +455,7 @@ spaces.
Display information about the connections associated with the Display information about the connections associated with the
specified hosts or ports. specified hosts or ports.
As for As for
.Ar ignore , .Ar ignore ,
.Op Ar items .Op Ar items
may be names or numbers. may be names or numbers.
.It Cm show Op Ar ports\&|hosts .It Cm show Op Ar ports\&|hosts
@ -468,7 +468,7 @@ If
or or
.Ar hosts .Ar hosts
is supplied as an argument to is supplied as an argument to
.Cm show , .Cm show ,
then only the requested information will be displayed. then only the requested information will be displayed.
.It Cm reset .It Cm reset
Reset the port, host, and protocol matching mechanisms to the default Reset the port, host, and protocol matching mechanisms to the default

View file

@ -111,7 +111,7 @@ some particular feature
and string and string
capabilities which give a regular expression or capabilities which give a regular expression or
keyword list. keyword list.
.Sh REGULAR EXPRESSIONS .Sh REGULAR EXPRESSIONS
.Nm Vgrindefs .Nm Vgrindefs
uses regular expression which are very similar to those of uses regular expression which are very similar to those of
.Xr ex 1 .Xr ex 1
@ -150,11 +150,11 @@ This is typically used for languages (like C) which can include the
string delimiter in a string by escaping it. string delimiter in a string by escaping it.
.El .El
.Pp .Pp
Unlike other regular expressions in the system, these match words Unlike other regular expressions in the system, these match words
and not characters. and not characters.
Hence something like "(tramp|steamer)flies?" Hence something like "(tramp|steamer)flies?"
would match "tramp", "steamer", "trampflies", or "steamerflies". would match "tramp", "steamer", "trampflies", or "steamerflies".
.Sh KEYWORD LIST .Sh KEYWORD LIST
The keyword list is just a list of keywords in the language separated The keyword list is just a list of keywords in the language separated
by spaces. by spaces.
If the "oc" boolean is specified, indicating that upper If the "oc" boolean is specified, indicating that upper

View file

@ -120,7 +120,9 @@ Historically, the
utility was documented to define a word as a ``maximal string of utility was documented to define a word as a ``maximal string of
characters delimited by <space>, <tab> or <newline> characters''. characters delimited by <space>, <tab> or <newline> characters''.
The implementation, however, didn't handle non-printing characters The implementation, however, didn't handle non-printing characters
correctly so that `` ^D^E '' counted as 6 spaces, while ``foo^D^Ebar'' correctly so that
.Dq " ^D^E "
counted as 6 spaces, while ``foo^D^Ebar''
counted as 8 characters. counted as 8 characters.
.Bx 4 .Bx 4
systems after systems after

View file

@ -96,14 +96,14 @@ and create the two default
windows instead. windows instead.
.It Fl e Ar escape-char .It Fl e Ar escape-char
Set the escape character to Set the escape character to
.Ar escape-char . .Ar escape-char .
.Ar Escape-char .Ar Escape-char
can be a single character, or in the form can be a single character, or in the form
.Ic ^X .Ic ^X
where where
.Ar X .Ar X
is any character, meaning is any character, meaning
.No control\- Ns Ar X . .No control\- Ns Ar X .
.It Fl c Ar command .It Fl c Ar command
Execute the string Execute the string
.Ar command .Ar command
@ -119,7 +119,7 @@ identifier, as well as a user definable label string, are displayed
with the window on the top edge of its frame. with the window on the top edge of its frame.
A window can be A window can be
designated to be in the designated to be in the
.Ar foreground , .Ar foreground ,
in which case it will always be in which case it will always be
on top of all normal, non-foreground windows, and can be covered on top of all normal, non-foreground windows, and can be covered
only by other foreground windows. only by other foreground windows.
@ -162,7 +162,7 @@ entry tailored to this window is created
and passed as environment (see and passed as environment (see
.Xr environ 7 ) .Xr environ 7 )
variable variable
.Ev TERMCAP . .Ev TERMCAP .
The termcap entry contains the window's size and The termcap entry contains the window's size and
characteristics as well as information from the physical terminal, characteristics as well as information from the physical terminal,
such as the existence of underline, reverse video, and other display such as the existence of underline, reverse video, and other display
@ -214,7 +214,7 @@ represents one of the digits ``1'' to ``9''
corresponding to the windows 1 to 9. corresponding to the windows 1 to 9.
.Ic ^X .Ic ^X
means means
.No control\- Ns Ar X , .No control\- Ns Ar X ,
where where
.Ar X .Ar X
is any character. is any character.
@ -694,7 +694,7 @@ as a statement, the parentheses surrounding
the argument list may be omitted. the argument list may be omitted.
Aliases return no value. Aliases return no value.
.El .El
.Ss Builtin Functions .Ss Builtin Functions
The arguments are listed by name in their natural The arguments are listed by name in their natural
order. order.
Optional arguments are in square brackets Optional arguments are in square brackets
@ -739,12 +739,12 @@ Close the windows specified in
If If
.Aq Ar window\-list .Aq Ar window\-list
is the word is the word
.Ar all , .Ar all ,
than all windows are closed. than all windows are closed.
No value is returned. No value is returned.
.It Ic cursormodes Ns Pq Bq Ar modes .It Ic cursormodes Ns Pq Bq Ar modes
Set the window cursor to Set the window cursor to
.Ar modes . .Ar modes .
.Ar Modes .Ar Modes
is the bitwise is the bitwise
or of the mode bits defined as the variables or of the mode bits defined as the variables
@ -766,7 +766,7 @@ sets the window cursors to blinking
reverse video. reverse video.
.It Ic default_nline Ns Pq Bq Ar nline .It Ic default_nline Ns Pq Bq Ar nline
Set the default buffer size to Set the default buffer size to
.Ar nline . .Ar nline .
Initially, it is Initially, it is
48 lines. 48 lines.
Returns the old default buffer size. Returns the old default buffer size.
@ -782,7 +782,7 @@ the first string in the old shell setting.
Default is no change. Default is no change.
Initially, Initially,
the default shell is taken from the environment variable the default shell is taken from the environment variable
.Ev SHELL . .Ev SHELL .
.It Ic default_smooth Ns Pq Bq Ar flag .It Ic default_smooth Ns Pq Bq Ar flag
Set the default value of the Set the default value of the
.Ar smooth .Ar smooth
@ -792,12 +792,12 @@ to the command
(see below). (see below).
The argument The argument
is a boolean flag (one of is a boolean flag (one of
.Ar on , .Ar on ,
.Ar off , .Ar off ,
.Ar yes , .Ar yes ,
.Ar no , .Ar no ,
.Ar true , .Ar true ,
.Ar false , .Ar false ,
or a number, or a number,
as described above). as described above).
Default is no change. Default is no change.
@ -823,7 +823,7 @@ Default
is the current window. is the current window.
.It Ic escape Ns Pq Bq Ar escapec .It Ic escape Ns Pq Bq Ar escapec
Set the escape character to Set the escape character to
.Ar escape-char . .Ar escape-char .
Returns the old Returns the old
escape character as a one-character string. escape character as a one-character string.
Default is no Default is no
@ -858,7 +858,7 @@ is no change.
Set the label of Set the label of
.Nm .Nm
to to
.Ar label . .Ar label .
Returns the old Returns the old
label as a string. label as a string.
Default for Default for
@ -883,11 +883,11 @@ is returned.
Default is no change. Default is no change.
.It Ic source Ns Pq Ar filename .It Ic source Ns Pq Ar filename
Read and execute the long commands in Read and execute the long commands in
.Ar filename . .Ar filename .
Returns \-1 if the file cannot be read, 0 otherwise. Returns \-1 if the file cannot be read, 0 otherwise.
.It Ic terse Ns Pq Bq flag .It Ic terse Ns Pq Bq flag
Set terse mode to Set terse mode to
.Ar flag . .Ar flag .
In terse mode, the command window In terse mode, the command window
stays hidden even in command mode, and errors are reported by stays hidden even in command mode, and errors are reported by
sounding the terminal's bell. sounding the terminal's bell.
@ -900,14 +900,14 @@ Returns the old terse flag.
Default is no change. Default is no change.
.It Ic unalias Ns Pq Ar alias .It Ic unalias Ns Pq Ar alias
Undefine Undefine
.Ar alias . .Ar alias .
Returns -1 if Returns -1 if
.Ar alias .Ar alias
does not exist, does not exist,
0 otherwise. 0 otherwise.
.It Ic unset Ns Pq Ar variable .It Ic unset Ns Pq Ar variable
Undefine Undefine
.Ar variable . .Ar variable .
Returns -1 if Returns -1 if
.Ar variable .Ar variable
does not exist, does not exist,
@ -931,11 +931,11 @@ No value is returned.
.Bq Ar shell ) . .Bq Ar shell ) .
.Xc .Xc
Open a window with upper left corner at Open a window with upper left corner at
.Ar row , .Ar row ,
.Ar column .Ar column
and size and size
.Ar nrow , .Ar nrow ,
.Ar ncol . .Ar ncol .
If If
.Ar nline .Ar nline
is specified, is specified,
@ -943,9 +943,9 @@ then that many lines are allocated for the text buffer.
Otherwise, Otherwise,
the default buffer size is used. the default buffer size is used.
Default values for Default values for
.Ar row , .Ar row ,
.Ar column , .Ar column ,
.Ar nrow , .Ar nrow ,
and and
.Ar ncol .Ar ncol
are, respectively, are, respectively,
@ -953,8 +953,8 @@ the upper, left-most, lower, or right-most extremes of the
screen. screen.
.Ar Label .Ar Label
is the label string. is the label string.
.Ar Frame , .Ar Frame ,
.Ar pty , .Ar pty ,
and and
.Ar mapnl .Ar mapnl
are flag values are flag values
@ -984,7 +984,7 @@ command (see above).
is a list of strings that will be used as the shell is a list of strings that will be used as the shell
program to place in the window (default is the program specified program to place in the window (default is the program specified
by by
.Ar default_shell , .Ar default_shell ,
see above). see above).
The created window's identifier The created window's identifier
is returned as a number. is returned as a number.