diff options
author | ru <ru@FreeBSD.org> | 2000-12-15 17:37:31 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2000-12-15 17:37:31 +0000 |
commit | d4cb36bcfe63746cb83dfe46c64e488907efc0cc (patch) | |
tree | eb7e07fe62ff498e105cf0a1879178c41ddb6120 /bin | |
parent | 0e14bc212f7632a28f94044f078fd3006db77e23 (diff) | |
download | FreeBSD-src-d4cb36bcfe63746cb83dfe46c64e488907efc0cc.zip FreeBSD-src-d4cb36bcfe63746cb83dfe46c64e488907efc0cc.tar.gz |
Prepare for mdoc(7)NG.
Diffstat (limited to 'bin')
-rw-r--r-- | bin/cat/cat.1 | 2 | ||||
-rw-r--r-- | bin/date/date.1 | 46 | ||||
-rw-r--r-- | bin/ed/ed.1 | 25 | ||||
-rw-r--r-- | bin/expr/expr.1 | 2 | ||||
-rw-r--r-- | bin/ln/symlink.7 | 2 | ||||
-rw-r--r-- | bin/ls/ls.1 | 4 | ||||
-rw-r--r-- | bin/ps/ps.1 | 5 | ||||
-rw-r--r-- | bin/rm/rm.1 | 2 | ||||
-rw-r--r-- | bin/sh/sh.1 | 4 | ||||
-rw-r--r-- | bin/sleep/sleep.1 | 2 | ||||
-rw-r--r-- | bin/stty/stty.1 | 36 |
11 files changed, 71 insertions, 59 deletions
diff --git a/bin/cat/cat.1 b/bin/cat/cat.1 index ee446ae..3bf36ba 100644 --- a/bin/cat/cat.1 +++ b/bin/cat/cat.1 @@ -90,7 +90,7 @@ Control characters print as .Ql ^X for control-X; the delete character (octal 0177) prints as -.Ql ^? +.Ql ^? . .Pf Non- Tn ASCII characters (with the high bit set) are printed as .Ql M- diff --git a/bin/date/date.1 b/bin/date/date.1 index 5904a3bc..029fc18 100644 --- a/bin/date/date.1 +++ b/bin/date/date.1 @@ -49,15 +49,25 @@ .Op Fl t Ar minutes_west .Oo .Fl v -.Op +|- Ns -.No val Ns Op ymwdHMS -.Oc Ns ... -.Oo Fl f No " " -.Ar fmt date No | -.Oo Oo Oo Oo Oo "\&cc" Ns -.Oc "\&yy" Oc "\&mm" Oc "\&dd" Oc "\&HH" Ns +.Sm off +.Op Cm + | - Xo +.Ar val Op Ar ymwdHMS +.Xc +.Sm on .Oc -.No "\&MM" Ns Op "\&.ss" +.Ar ... +.Oo +.Fl f +.Ar fmt date | +.Sm off +.Oo Oo Oo Oo Oo +.Ar cc Oc +.Ar yy Oc +.Ar mm Oc +.Ar dd Oc +.Ar HH Oc +.Ar MM Op Ar .ss +.Sm on .Oc .Op Cm + Ns Ar format .Sh DESCRIPTION @@ -84,14 +94,18 @@ will return a non-zero for .It Fl f Use .Ar fmt -as the format string to parse the date provided rather than using -the default -.\" .Ar [[[[[cc]yy]mm]dd]HH]MM[.ss] -.Xo -.Oo Oo Oo Oo Oo "\&cc" Ns -.Oc "\&yy" Oc "\&mm" Oc "\&dd" Oc "\&HH" Ns -.Oc -.No "\&MM" Ns Op "\&.ss" Xc +as the format string to parse the +.Ar date +provided rather than using the default +.Sm off +.Oo Oo Oo Oo Oo +.Ar cc Oc +.Ar yy Oc +.Ar mm Oc +.Ar dd Oc +.Ar HH +.Oc Ar MM Op Ar .ss +.Sm on format. Parsing is done using .Xr strptime 3 . diff --git a/bin/ed/ed.1 b/bin/ed/ed.1 index 5d2567e..194ab1b 100644 --- a/bin/ed/ed.1 +++ b/bin/ed/ed.1 @@ -25,7 +25,7 @@ files. .\" .BR ed : .\" it can only edit files in the current .\" directory and cannot execute shell commands. - +.Pp If invoked with a .Ar file argument, then a copy of @@ -39,7 +39,7 @@ Upon quitting any changes not explicitly saved with a .Em w command are lost. - +.Pp Editing is done in two distinct modes: .Em command and @@ -81,7 +81,7 @@ including a character. Input mode is terminated by entering a single period -.Pf ( Em . Ns ) +.Pq Em .\& on a line. .Pp All @@ -427,7 +427,7 @@ commands are single characters, though some require additional parameters. If a command's parameters extend over several lines, then each line except for the last must be terminated with a backslash (\\). - +.Pp In general, at most one command is allowed per line. However, most commands accept a print suffix, which is any of .Em p @@ -438,10 +438,10 @@ or .Em n (enumerate), to print the last line affected by the command. - +.Pp An interrupt (typically ^C) has the effect of aborting the current command and returning the editor to command mode. - +.Pp .Nm Ed recognizes the following commands. The commands are shown together with the default address or address range supplied if none is @@ -835,9 +835,8 @@ attempts to write the buffer if the terminal hangs up .Xr sh 1 , .Xr vi 1 , .Xr regex 3 - +.Pp USD:12-13 - .Rs .%A B. W. Kernighan .%A P. J. Plauger @@ -845,7 +844,6 @@ USD:12-13 .%O Addison-Wesley .%D 1981 .Re - .Sh LIMITATIONS .Nm Ed processes @@ -853,16 +851,15 @@ processes arguments for backslash escapes, i.e., in a filename, any characters preceded by a backslash (\\) are interpreted literally. - +.Pp If a text (non-binary) file is not terminated by a newline character, then .Nm appends one on reading/writing it. In the case of a binary file, .Nm does not append a newline on reading/writing. - +.Pp per line overhead: 4 ints - .Sh DIAGNOSTICS When an error occurs, .Nm @@ -872,7 +869,7 @@ An explanation of the last error can be printed with the .Em h (help) command. - +.Pp Since the .Em g (global) command masks any errors from failed searches and substitutions, @@ -894,7 +891,7 @@ If the .Em u (undo) command occurs in a global command list, then the command list is executed only once. - +.Pp If diagnostics are not disabled, attempting to quit .Nm or edit another file before writing a modified buffer diff --git a/bin/expr/expr.1 b/bin/expr/expr.1 index defd8a4..523cd1f 100644 --- a/bin/expr/expr.1 +++ b/bin/expr/expr.1 @@ -77,7 +77,7 @@ Return the results of addition or subtraction of integer-valued arguments. Return the results of multiplication, integer division, or remainder of integer-valued arguments. .It Ar expr1 Li : Ar expr2 The -.Dq \: +.Dq \&: operator matches .Ar expr1 against diff --git a/bin/ln/symlink.7 b/bin/ln/symlink.7 index 1ff3295..4b2113b 100644 --- a/bin/ln/symlink.7 +++ b/bin/ln/symlink.7 @@ -102,7 +102,7 @@ For example, if there were a symbolic link which pointed to a file named .Dq Li afile , the system call -.Dq Li open("slink" ...) +.Dq Li open("slink" ...\&) would return a file descriptor to the file .Dq afile . .Pp diff --git a/bin/ls/ls.1 b/bin/ls/ls.1 index f0a05de..35ca25d 100644 --- a/bin/ls/ls.1 +++ b/bin/ls/ls.1 @@ -72,9 +72,9 @@ The following options are available: .Bl -tag -width indent .It Fl A List all entries except for -.Ql \&. +.Ql .\& and -.Ql \&.. . +.Ql .. . Always set for the super-user. .It Fl B Force printing of non-graphic characters in file names as \\xxx, diff --git a/bin/ps/ps.1 b/bin/ps/ps.1 index d9212a0..dc1f251 100644 --- a/bin/ps/ps.1 +++ b/bin/ps/ps.1 @@ -47,8 +47,9 @@ .Op Fl o Ar fmt .Op Fl p Ar pid .Op Fl t Ar tty -.Oo Fl U Ar username Ns +.Oo Fl U Ar username Ns Xo .Op , Ns Ar username Ns No ... +.Xc .Oc .Op Fl W Ar swap .Nm @@ -226,7 +227,7 @@ The name of the .Xr mutex 9 that the process is currently blocked on. If the name is invalid or unknown, then -.Dq ??? +.Dq ???\& is displayed. .It nice The process scheduling increment (see diff --git a/bin/rm/rm.1 b/bin/rm/rm.1 index d93a069..42c2860 100644 --- a/bin/rm/rm.1 +++ b/bin/rm/rm.1 @@ -115,7 +115,7 @@ The utility removes symbolic links, not the files referenced by the links. .Pp It is an error to attempt to remove the files -.Dq \&. +.Dq .\& or .Dq .. . .Pp diff --git a/bin/sh/sh.1 b/bin/sh/sh.1 index 43ba250..4cbf0a9 100644 --- a/bin/sh/sh.1 +++ b/bin/sh/sh.1 @@ -674,7 +674,7 @@ to the standard input of .Ql command2 . .Pp A -.Dq Li \; +.Dq Li \&; or newline terminator causes the preceding AND-OR-list (described below in the section called @@ -1260,7 +1260,7 @@ The character class may be complemented by making an exclamation point the first character of the character class. .Pp To include a -.Dq Li \] +.Dq Li \&] in a character class, make it the first character listed (after the .Dq Li ! , diff --git a/bin/sleep/sleep.1 b/bin/sleep/sleep.1 index 41d6664..5c93167 100644 --- a/bin/sleep/sleep.1 +++ b/bin/sleep/sleep.1 @@ -64,7 +64,7 @@ The command will accept and honor a non-integer number of specified seconds .Po with a -.Ql \&. +.Ql .\& character as a decimal point .Pc . .Bf Sy diff --git a/bin/stty/stty.1 b/bin/stty/stty.1 index 733bf28..6ff4b0d 100644 --- a/bin/stty/stty.1 +++ b/bin/stty/stty.1 @@ -368,24 +368,24 @@ Recognized control-characters: .Bd -ragged -offset indent .Bl -column character Subscript .It control- -.It character Subscript Description -.It _________ _________ _______________ -.It eof Ta Tn VEOF EOF No character -.It eol Ta Tn VEOL EOL No character -.It eol2 Ta Tn VEOL2 EOL2 No character -.It erase Ta Tn VERASE ERASE No character -.It erase2 Ta Tn VERASE2 ERASE2 No character -.It werase Ta Tn VWERASE WERASE No character -.It intr Ta Tn VINTR INTR No character -.It kill Ta Tn VKILL KILL No character -.It quit Ta Tn VQUIT QUIT No character -.It susp Ta Tn VSUSP SUSP No character -.It start Ta Tn VSTART START No character -.It stop Ta Tn VSTOP STOP No character -.It dsusp Ta Tn VDSUSP DSUSP No character -.It lnext Ta Tn VLNEXT LNEXT No character -.It reprint Ta Tn VREPRINT REPRINT No character -.It status Ta Tn VSTATUS STATUS No character +.It character Ta Subscript Ta Description +.It _________ Ta _________ Ta _______________ +.It eof Ta Tn VEOF Ta EOF No character +.It eol Ta Tn VEOL Ta EOL No character +.It eol2 Ta Tn VEOL2 Ta EOL2 No character +.It erase Ta Tn VERASE Ta ERASE No character +.It erase2 Ta Tn VERASE2 Ta ERASE2 No character +.It werase Ta Tn VWERASE Ta WERASE No character +.It intr Ta Tn VINTR Ta INTR No character +.It kill Ta Tn VKILL Ta KILL No character +.It quit Ta Tn VQUIT Ta QUIT No character +.It susp Ta Tn VSUSP Ta SUSP No character +.It start Ta Tn VSTART Ta START No character +.It stop Ta Tn VSTOP Ta STOP No character +.It dsusp Ta Tn VDSUSP Ta DSUSP No character +.It lnext Ta Tn VLNEXT Ta LNEXT No character +.It reprint Ta Tn VREPRINT Ta REPRINT No character +.It status Ta Tn VSTATUS Ta STATUS No character .El .Ed .It Cm min Ar number |