2 .\" The Regents of the University of California. All rights reserved.
3 .\" Copyright (c) 1994, 1995, 1996
4 .\" Keith Bostic. All rights reserved.
6 .\" Zhihao Yuan. All rights reserved.
8 .\" This document may not be republished without written permission from
11 .\" See the LICENSE file for redistribution information.
13 .\" @(#)vi.1 8.51 (Berkeley) 10/10/96
14 .\" $FreeBSD: head/contrib/nvi/docs/USD.doc/vi.man/vi.1 254225 2013-08-11 20:03:12Z peter $
15 .\" $Id: vi.1,v 8.59 2012/02/12 12:56:37 zy Exp $
17 .TH VI 1 "11 February, 2012"
20 ex, vi, view \- text editors
55 The vi program is freely redistributable. You are welcome to copy,
56 modify and share it with others under the conditions listed in the
57 LICENSE file. If any company (not individual!) finds vi sufficiently
58 useful that you would have purchased it, or if any company wishes to
59 redistribute it, contributions to the authors would be appreciated.
62 is a screen oriented text editor.
64 is a line-oriented text editor.
68 are different interfaces to the same program,
69 and it is possible to switch back and forth during an edit session.
71 is the equivalent of using the
76 This manual page is the one provided with the
82 are intended as bug-for-bug compatible replacements for the original
83 Fourth Berkeley Software Distribution (4BSD)
88 For the rest of this manual page,
90 is used only when it's necessary to distinguish it from the historic
94 This manual page is intended for users already familiar with
96 Anyone else should almost certainly read a good tutorial on the
97 editor before this manual page.
98 If you're in an unfamiliar environment, and you absolutely have to
99 get work done immediately, read the section after the options
100 description, entitled ``Fast Startup''.
101 It's probably enough to get you going.
103 The following options are available:
108 immediately after starting the edit session.
109 Particularly useful for initial positioning in the file, however
111 is not limited to positioning commands.
112 This is the POSIX 1003.2 interface for the historic ``+cmd'' syntax.
114 supports both the old and new syntax.
117 Start editing in ex mode, as if the command name were
121 Don't copy the entire file when first starting to edit.
122 (The default is to make a copy in case someone else modifies
123 the file during your edit session.)
126 Start editing with the lisp and showmatch options set.
129 Start editing in read-only mode, as if the command name was
136 Recover the specified files, or, if no files are specified,
137 list the files that could be recovered.
138 If no recoverable files by the specified name exist,
139 the file is edited as if the
141 option had not been specified.
146 edit option set, disallowing all access to external programs.
149 Enter batch mode; applicable only to
152 Batch mode is useful when running
155 Prompts, informative messages and other user oriented message
157 and no startup files or environment variables are read.
158 This is the POSIX 1003.2 interface for the historic ``\-'' argument.
160 supports both the old and new syntax.
163 Start editing at the specified tag.
168 Set the initial window size to the specified number of lines.
171 Start editing in vi mode, as if the command name was
178 is read from the standard input.
181 interface, it is an error if standard input is not a terminal.
184 interface, if standard input is not a terminal,
186 will read commands from it regardless, however, the session will be a
187 batch mode session, exactly as if the
189 option had been specified.
192 exits 0 on success, and greater than 0 if an error occurs.
194 This section will tell you the minimum amount that you need to
195 do simple editing tasks using
197 If you've never used any screen editor before, you're likely to have
198 problems even with this simple introduction.
199 In that case you should find someone that already knows
201 and have them walk you through this section.
205 This means that it takes up almost the entire screen, displaying part
206 of the file on each screen line, except for the last line of the screen.
207 The last line of the screen is used for you to give commands to
211 to give information to you.
213 The other fact that you need to understand is that
215 is a modeful editor, i.e. you are either entering text or you
216 are executing commands, and you have to be in the right mode
217 to do one or the other.
218 You will be in command mode when you first start editing a file.
219 There are commands that switch you into input mode.
220 There is only one key that takes you out of input mode,
221 and that is the <escape> key.
222 (Key names are written using less-than and greater-than signs, e.g.
223 <escape> means the ``escape'' key, usually labeled ``esc'' on your
224 terminal's keyboard.)
225 If you're ever confused as to which mode you're in,
226 keep entering the <escape> key until
231 will beep at you if you try and do something that's not allowed.
232 It will also display error messages.)
234 To start editing a file, enter the command ``vi file_name<carriage-return>''.
235 The command you should enter as soon as you start editing is
236 ``:set verbose showmode<carriage-return>''.
237 This will make the editor give you verbose error messages and display
238 the current mode at the bottom of the screen.
240 The commands to move around the file are:
243 Move the cursor left one character.
246 Move the cursor down one line.
249 Move the cursor up one line.
252 Move the cursor right one character.
255 The cursor arrow keys should work, too.
257 .B /text<carriage-return>
258 Search for the string ``text'' in the file,
259 and move the cursor to its first character.
261 The commands to enter new text are:
274 Open a new line below the line the cursor is on, and start
278 Open a new line above the line the cursor is on, and start
282 Once you've entered input mode using the one of the
290 to quit entering text and return to command mode.
292 The commands to copy text are:
295 Copy the line the cursor is on.
298 Append the copied line after the line the cursor is on.
300 The commands to delete text are:
303 Delete the line the cursor is on.
306 Delete the character the cursor is on.
308 The commands to write the file are:
310 .B :w<carriage-return>
311 Write the file back to the file with the name that you originally used
312 as an argument on the
316 .B ":w file_name<carriage-return>"
317 Write the file back to the file with the name ``file_name''.
319 The commands to quit editing and exit the editor are:
321 .B :q<carriage-return>
322 Quit editing and leave vi (if you've modified the file, but not
325 will refuse to quit).
327 .B :q!<carriage-return>
328 Quit, discarding any modifications that you may have made.
331 Unusual characters can take up more than one column on the screen,
332 and long lines can take up more than a single screen line.
333 The above commands work on ``physical'' characters and lines,
334 i.e. they affect the entire line no matter how many screen lines it
335 takes up and the entire character no matter how many screen columns
338 The following section describes the commands available in the command
342 In each entry below, the tag line is a usage synopsis for the command
346 .B "[count] <control-A>"
349 times for the current word.
351 .B "[count] <control-B>"
356 .B "[count] <control-D>"
361 .B "[count] <control-E>"
364 lines, leaving the current line and column as is, if possible.
366 .B "[count] <control-F>"
372 Display the file information.
379 characters in the current line.
381 .B "[count] <control-J>"
383 .B "[count] <control-N>"
388 lines without changing the current column.
395 .B "[count] <control-M>"
400 lines to the first nonblank character of that line.
402 .B "[count] <control-P>"
407 lines, without changing the current column.
410 Return to the most recent tag context.
418 Switch to the next lower screen in the window, or, to the first
419 screen if there are no lower screens in the window.
424 lines, leaving the current line and column as is, if possible.
427 Suspend the current editor session.
432 commands or cancel partial commands.
435 Push a tag reference onto the tag stack.
438 Switch to the most recently edited file.
443 Move the cursor forward
445 characters without changing the current line.
447 .B "[count] ! motion shell-argument(s)"
448 Replace text with results from a shell command.
451 Increment or decrement the cursor number.
454 Move the cursor to the end of a line.
457 Move to the matching character.
460 Repeat the previous substitution command on the current line.
465 Return to a context marked by the character
479 Reverse find character
484 Move to first nonblank of the previous line,
491 command that modified text.
493 .B "/RE<carriage-return>"
495 .B "/RE/ [offset]<carriage-return>"
497 .B "?RE<carriage-return>"
499 .B "?RE? [offset]<carriage-return>"
504 Search forward or backward for a regular expression.
507 Move to the first character in the current line.
510 Execute an ex command.
513 Repeat the last character find
517 .B "[count] < motion"
519 .B "[count] > motion"
520 Shift lines left or right.
523 Execute a named buffer.
526 Enter input mode, appending the text after the end of the line.
533 .B "[buffer] [count] C"
534 Change text from the current position to the end-of-line.
537 Delete text from the current position to the end-of-line.
544 .B "[count] F <character>"
547 times backward through the current line for
553 or the last line of the file if
558 Move to the screen line
560 lines below the top of the screen.
563 Enter input mode, inserting the text at the beginning of the line.
569 Move to the screen line
571 lines above the bottom of the screen.
574 Move to the screen line in the middle of the screen.
577 Enter input mode, appending text in a new line above the current line.
580 Insert text from a buffer.
585 (or visual) mode and switch to
590 Enter input mode, replacing the characters in the current line.
592 .B "[buffer] [count] S"
597 .B "[count] T <character>"
601 through the current line for the character
607 Restore the current line to its state before the cursor last
615 .B "[buffer] [count] X"
618 characters before the cursor.
620 .B "[buffer] [count] Y"
623 lines into the specified buffer.
626 Write the file and exit
640 Move to first nonblank character on the current line.
645 lines, to the first nonblank character.
648 Enter input mode, appending the text after the cursor.
655 .B "[buffer] [count] c motion"
656 Change a region of text.
658 .B "[buffer] [count] d motion"
659 Delete a region of text.
666 .B "[count] f<character>"
669 times, through the rest of the current line for
673 Enter input mode, inserting the text before the cursor.
676 Save the current context (line and column) as
680 Enter input mode, appending text in a new line under the current line.
683 Append text from a buffer.
685 .B "[count] r <character>"
690 .B "[buffer] [count] s"
693 characters in the current line starting with the current character.
695 .B "[count] t <character>"
698 times, through the current line for the character immediately
703 Undo the last change made to the file.
710 .B "[buffer] [count] x"
715 .B "[buffer] [count] y motion"
717 a text region specified by the
719 and motion into a buffer.
721 .B "[count1] z [count2] -|.|+|^|<carriage-return>"
722 Redraw, optionally repositioning and resizing the screen.
732 position on the current line.
740 Reverse the case of the next
744 .B "[count] ~ motion"
745 Reverse the case of the characters in a text region specified by the
751 Interrupt the current operation.
752 .SH VI TEXT INPUT COMMANDS
753 The following section describes the commands available in the text
760 Replay the previous input.
763 Erase to the previous
768 Erase all of the autoindent characters, and reset the autoindent level.
771 Erase all of the autoindent characters.
778 characters to move forward to the next
785 Erase the last character.
788 Quote the next character.
791 Resolve all text input into the file, and return to command mode.
794 Erase the current line.
800 The definition of word is dependent on the
806 .B "<control-X>[0-9A-Fa-f]+"
807 Insert a character with the specified hexadecimal value into the text.
810 Interrupt text input mode, returning to command mode.
812 The following section describes the commands available in the
815 In each entry below, the tag line is a usage synopsis for the command.
823 .B "[range]! argument(s)"
824 Execute a shell command, or filter lines through a shell command.
829 .B "[range] nu[mber] [count] [flags]"
831 .B "[range] # [count] [flags]"
832 Display the selected lines, each preceded with its line number.
839 .B "[line] a[ppend][!]"
840 The input text is appended after the specified line.
842 .B "[range] c[hange][!] [count]"
843 The input text replaces the specified range.
845 .B "cs[cope] add | find | help | kill | reset"
846 Execute a Cscope command.
848 .B "[range] d[elete] [buffer] [count] [flags]"
849 Delete the lines from the file.
851 .B "di[splay] b[uffers] | c[onnections] | s[creens] | t[ags]"
852 Display buffers, Cscope connections, screens or tags.
854 .B "[Ee][dit][!] [+cmd] [file]"
856 .B "[Ee]x[!] [+cmd] [file]"
857 Edit a different file.
859 .B "exu[sage] [command]"
865 Display and optionally change the file name.
870 Foreground the specified screen.
872 .B "[range] g[lobal] /pattern/ [commands]"
874 .B "[range] v /pattern/ [commands]"
875 Apply commands to lines matching (or not matching) a pattern.
878 Display a help message.
880 .B "[line] i[nsert][!]"
881 The input text is inserted before the specified line.
883 .B "[range] j[oin][!] [count] [flags]"
884 Join lines of text together.
886 .B "[range] l[ist] [count] [flags]"
887 Display the lines unambiguously.
889 .B "map[!] [lhs rhs]"
890 Define or display maps (for
894 .B "[line] ma[rk] <character>"
896 .B "[line] k <character>"
897 Mark the line with the mark
900 .B "[range] m[ove] line"
901 Move the specified lines after the target line.
903 .B "mk[exrc][!] file"
904 Write the abbreviations, editor options and maps to the specified
907 .B "[Nn][ext][!] [file ...]"
908 Edit the next file from the argument list.
910 .B "[line] o[pen] /pattern/ [flags]"
914 Save the file in a form that can later be recovered using the
919 .B "[Pp]rev[ious][!]"
920 Edit the previous file from the argument list.
922 .B "[range] p[rint] [count] [flags]"
923 Display the specified lines.
925 .B "[line] pu[t] [buffer]"
926 Append buffer contents to the current line.
929 End the editing session.
931 .B "[line] r[ead][!] [file]"
937 if it was previously saved.
939 .B "res[ize] [+|-]size"
942 Grow or shrink the current screen.
945 Rewind the argument list.
947 .B "se[t] [option[=[value]] ...] [nooption ...] [option? ...] [all]"
948 Display or set editor options.
956 commands from a file.
958 .B "[range] s[ubstitute] [/pattern/replace/] [options] [count] [flags]"
960 .B "[range] & [options] [count] [flags]"
962 .B "[range] ~ [options] [count] [flags]"
970 Suspend the edit session.
972 .B "[Tt]a[g][!] tagstring"
973 Edit the file containing the specified tag.
976 Edit the file containing the next context for the current tag.
978 .B "tagp[op][!] [file | number]"
979 Pop to the specified tag in the tags stack.
982 Edit the file containing the previous context for the current tag.
985 Unmap a mapped string.
988 Display the version of the
992 .B "[line] vi[sual] [type] [count] [flags]"
998 .B "[Vi]i[sual][!] [+cmd] [file]"
1003 .B "viu[sage] [command]"
1008 .B "[range] w[rite][!] [>>] [file]"
1010 .B "[range] w[rite] [!] [file]"
1012 .B "[range] wn[!] [>>] [file]"
1014 .B "[range] wq[!] [>>] [file]"
1017 .B "[range] x[it][!] [file]"
1018 Write the file if it has been modified.
1020 .B "[range] ya[nk] [buffer] [count]"
1021 Copy the specified lines to a buffer.
1023 .B "[line] z [type] [count] [flags]"
1026 There are a large number of options that may be set (or unset) to
1027 change the editor's behavior.
1028 This section describes the options, their abbreviations and their
1031 In each entry below, the first part of the tag line is the full name
1032 of the option, followed by any equivalent abbreviations.
1033 The part in square brackets is the default value of the option.
1034 Most of the options are boolean, i.e. they are either on or off,
1035 and do not have an associated value.
1037 Options apply to both
1041 modes, unless otherwise specified.
1044 .B "altwerase [off]"
1047 Select an alternate word erase algorithm.
1049 .B "autoindent, ai [off]"
1050 Automatically indent new lines.
1052 .B "autoprint, ap [off]"
1055 Display the current line automatically.
1057 .B "autowrite, aw [off]"
1058 Write modified files automatically when changing files.
1059 .\" I cannot get a double quote to print between the square brackets
1060 .\" to save my life. The ONLY way I've been able to get this to work
1061 .\" is with the .tr command.
1067 Backup files before they are overwritten.
1069 .B "beautify, bf [off]"
1070 Discard control characters.
1072 .B "cdpath [environment variable CDPATH, or current directory]"
1073 The directory paths used as path prefixes for the
1077 .B "cedit [no default]"
1078 Set the character to edit the colon command-line history.
1080 .B "columns, co [80]"
1081 Set the number of columns in the screen.
1086 Skip leading comments in shell, C and C++ language files.
1088 .B "directory, dir [environment variable TMPDIR, or /tmp]"
1089 The directory where temporary files are created.
1091 .B "edcompatible, ed [off]"
1092 Remember the values of the ``c'' and ``g'' suffices to the
1094 commands, instead of initializing them as unset for each new
1097 .B "errorbells, eb [off]"
1100 Announce error messages with a bell.
1103 Read the startup files in the local directory.
1106 Regular expressions are extended (i.e.
1111 Set the character to perform file path completion on the colon
1114 .B "fileencoding, fe [auto detect]"
1115 Set the encoding of the current file.
1118 Flash the screen instead of beeping the keyboard on error.
1120 .B "hardtabs, ht [8]"
1121 Set the spacing between hardware tab settings.
1124 Makes all Regular Expressions case-insensitive,
1125 as long as an upper-case letter does not appear in the search string.
1127 .B "ignorecase, ic [off]"
1128 Ignore case differences in regular expressions.
1130 .B "inputencoding, ie [locale]"
1131 Set the encoding of your input characters.
1134 The 10th's of a second
1136 waits for a subsequent key to complete a key mapping.
1138 .B "leftright [off]"
1141 Do left-right scrolling.
1146 Set the number of lines in the screen.
1151 Modify various search commands and options to work with Lisp.
1152 .I "This option is not yet implemented."
1155 Display lines in an unambiguous fashion.
1158 Attempt to get an exclusive lock on any file being edited,
1162 Treat certain characters specially in regular expressions.
1164 .B "matchchars [[]{}()]"
1165 Character pairs looked for by the
1172 The 10th's of a second
1174 pauses on the matching character when the
1179 Permit messages from other users.
1181 .B "modelines, modeline [off]"
1182 Read the first and last few lines of each file for
1185 .I "This option will never be implemented."
1186 .\" I cannot get a double quote to print between the square brackets
1187 .\" to save my life. The ONLY way I've been able to get this to work
1188 .\" is with the .tr command.
1194 Characters that are never handled as printable characters.
1196 .B "number, nu [off]"
1197 Precede each line displayed with its current line number.
1200 Display unknown characters as octal numbers, instead of the default
1206 If this option is not set, the
1210 commands are disallowed.
1212 .B "optimize, opt [on]"
1215 Optimize text throughput to dumb terminals.
1216 .I "This option is not yet implemented."
1218 .B "paragraphs, para [IPLPPPQPP LIpplpipbp]"
1221 Define additional paragraph boundaries for the
1228 Define additional directories to search for files being edited.
1229 .\" I cannot get a double quote to print between the square brackets
1230 .\" to save my life. The ONLY way I've been able to get this to work
1231 .\" is with the .tr command.
1237 Characters that are always handled as printable characters.
1242 Display a command prompt.
1244 .B "readonly, ro [off]"
1245 Mark the file and session as read-only.
1247 .B "recdir [/var/tmp/vi.recover]"
1248 The directory where recovery files are stored.
1250 .B "redraw, re [off]"
1253 Simulate an intelligent terminal on a dumb one.
1254 .I "This option is not yet implemented."
1257 Remap keys until resolved.
1260 Set the number of lines about which the editor reports changes
1266 Display a row/column ruler on the colon command line.
1268 .B "scroll, scr [window / 2]"
1269 Set the number of lines scrolled.
1271 .B "searchincr [off]"
1276 commands incremental.
1278 .B "sections, sect [NHSHH HUnhsh]"
1281 Define additional section boundaries for the
1288 Turns off all access to external programs.
1290 .B "shell, sh [environment variable SHELL, or /bin/sh]"
1291 Select the shell used by the editor.
1292 .\" I cannot get a double quote to print between the square brackets
1293 .\" to save my life. The ONLY way I've been able to get this to work
1294 .\" is with the .tr command.
1296 .ds ms shellmeta [~{[*?$`'Q\e]
1300 Set the meta characters checked to determine if file name expansion
1303 .B "shiftwidth, sw [8]"
1304 Set the autoindent and shift command indentation width.
1306 .B "showmatch, sm [off]"
1309 Note the left matching characters when the right ones are inserted.
1311 .B "showmode, smd [off]"
1314 Display the current editor mode and a ``modified'' flag.
1316 .B "sidescroll [16]"
1319 Set the amount a left-right scroll will shift.
1321 .B "slowopen, slow [off]"
1322 Delay display updating during text input.
1323 .I "This option is not yet implemented."
1325 .B "sourceany [off]"
1326 Read startup files not owned by the current user.
1327 .I "This option will never be implemented."
1329 .B "tabstop, ts [8]"
1330 This option sets tab widths for the editor display.
1332 .B "taglength, tl [0]"
1333 Set the number of significant characters in tag names.
1335 .B "tags, tag [tags /var/db/libc.tags /sys/kern/tags]"
1336 Set the list of tags files.
1338 .B "term, ttytype, tty [environment variable TERM]"
1339 Set the terminal type.
1342 This option has historically made editor messages less verbose.
1343 It has no effect in this implementation.
1348 command to take an associated motion.
1350 .B "timeout, to [on]"
1351 Time out on keys which may be mapped.
1353 .B "ttywerase [off]"
1356 Select an alternate erase algorithm.
1361 Display an error message for every error.
1363 .B "w300 [no default]"
1366 Set the window size if the baud rate is less than 1200 baud.
1368 .B "w1200 [no default]"
1371 Set the window size if the baud rate is equal to 1200 baud.
1373 .B "w9600 [no default]"
1376 Set the window size if the baud rate is greater than 1200 baud.
1381 This option causes a warning message to the terminal if the file has
1382 been modified, since it was last written, before a
1386 .B "window, w, wi [environment variable LINES]"
1387 Set the window size for the screen.
1389 .B "windowname [off]"
1390 Change the icon/window name to the current file name.
1392 .B "wraplen, wl [0]"
1395 Break lines automatically, the specified number of columns from the
1401 edit options are set, the
1405 .B "wrapmargin, wm [0]"
1408 Break lines automatically, the specified number of columns from the
1414 edit options are set, the
1418 .B "wrapscan, ws [on]"
1419 Set searches to wrap around the end or beginning of the file.
1421 .B "writeany, wa [off]"
1422 Turn off file-overwriting checks.
1423 .SH ENVIRONMENT VARIABLES
1426 The number of columns on the screen.
1427 This value overrides any system or terminal specific values.
1430 environment variable is not set when
1434 option is explicitly reset by the user,
1436 enters the value into the environment.
1441 startup commands, read if the variable
1446 The user's home directory, used as the initial directory path
1447 for the startup ``$\fIHOME\fP/.nexrc'' and ``$\fIHOME\fP/.exrc''
1449 This value is also used as the default directory for the
1455 The number of rows on the screen.
1456 This value overrides any system or terminal specific values.
1459 environment variable is not set when
1463 option is explicitly reset by the user,
1465 enters the value into the environment.
1473 The user's shell of choice (see also the
1478 The user's terminal type.
1479 The default is the type ``unknown''.
1482 environment variable is not set when
1486 option is explicitly reset by the user,
1488 enters the value into the environment.
1491 The location used to stored temporary files (see also the
1494 .SH ASYNCHRONOUS EVENTS
1498 uses this signal for periodic backups of file modifications and to
1499 display ``busy'' messages when operations are likely to take a long time.
1504 If the current buffer has changed since it was last written in its
1505 entirety, the editor attempts to save the modified file so it can
1509 Reference manual section entitled ``Recovery'' for more information.
1512 When an interrupt occurs,
1513 the current operation is halted,
1514 and the editor returns to the command level.
1515 If interrupted during text input,
1516 the text already input is resolved into the file as if the text
1517 input had been normally terminated.
1520 The screen is resized.
1523 Reference manual section entitled ``Sizing the Screen'' for more information.
1531 ignores these signals.
1535 The default user shell.
1538 System-wide vi startup file.
1541 Temporary file directory.
1544 The default recovery file directory.
1547 1st choice for user's home directory startup file.
1550 2nd choice for user's home directory startup file.
1553 1st choice for local directory startup file.
1556 2nd choice for local directory startup file.
1564 The ``Vi Quick Reference'' card.
1566 ``An Introduction to Display Editing with Vi'', found in the
1567 ``UNIX User's Manual Supplementary Documents''
1568 section of both the 4.3BSD and 4.4BSD manual sets.
1569 This document is the closest thing available to an introduction to the
1573 ``Ex Reference Manual (Version 3.7)'',
1575 ``UNIX User's Manual Supplementary Documents''
1576 section of both the 4.3BSD and 4.4BSD manual sets.
1577 This document is the final reference for the
1579 editor, as distributed in most historic 4BSD and System V systems.
1581 ``Edit: A tutorial'',
1583 ``UNIX User's Manual Supplementary Documents''
1584 section of the 4.3BSD manual set.
1585 This document is an introduction to a simple version of the
1589 ``Ex/Vi Reference Manual'',
1591 ``UNIX User's Manual Supplementary Documents''
1592 section of the 4.4BSD manual set.
1593 This document is the final reference for the
1595 text editors, as distributed in 4.4BSD and 4.4BSD-Lite.
1598 source for all of these documents is distributed with
1606 The files ``autowrite'', ``input'', ``quoting'' and ``structures''
1608 .I nvi/docs/internals
1615 replacements for the
1617 editor first appeared in 4.4BSD.
1620 is close to IEEE Std1003.2 (``POSIX'').
1621 That document differs from historical
1623 practice in several places; there are changes to be made on both sides.