Lines Matching +full:- +full:oc

3 .\"-
23 .\"-
27 .\" * - generates ‐ in gnroff, \- generates −, so .tr it to -
28 .\" thus use - for hyphens and \- for minus signs and option dashes
29 .\" * ~ is size-reduced and placed atop in groff, so use \*(TI
30 .\" * ^ is size-reduced and placed atop in groff, so use \*(ha
35 .\" be interpreted as punctuation, and especially with two-letter words
42 . if \*[.T]ascii .tr \-\N'45'
43 . if \*[.T]latin1 .tr \-\N'45'
44 . if \*[.T]utf8 .tr \-\N'45'
84 .\" with -mandoc, it might implement .Mx itself, but we want to
89 .\" Check which macro package we use, and do other -mdoc setup.
94 . ie d volume-ds-1 .ds tT gnu
95 . el .ie d doc-volume-ds-1 .ds tT gnp
105 . nr curr-font \n[.f]
106 . nr curr-size \n[.ps]
107 . ds str-Mx \f[\n[curr-font]]\s[\n[curr-size]u]
108 . ds str-Mx1 \*[Tn-font-size]\%MirBSD\*[str-Mx]
109 . if !\n[arg-limit] \
111 . ds macro-name Mx
112 . parse-args \$@
114 . if (\n[arg-limit] > \n[arg-ptr]) \{\
115 . nr arg-ptr +1
116 . ie (\n[type\n[arg-ptr]] == 2) \
117 . as str-Mx1 \~\*[arg\n[arg-ptr]]
119 . nr arg-ptr -1
121 . ds arg\n[arg-ptr] "\*[str-Mx1]
122 . nr type\n[arg-ptr] 2
123 . ds space\n[arg-ptr] "\*[space]
124 . nr num-args (\n[arg-limit] - \n[arg-ptr])
125 . nr arg-limit \n[arg-ptr]
126 . if \n[num-args] \
127 . parse-space-vector
128 . print-recursive
132 . ds tN \*[Tn-font-size]
137 . nr doc-curr-font \n[.f]
138 . nr doc-curr-size \n[.ps]
139 . ds doc-str-Mx \f[\n[doc-curr-font]]\s[\n[doc-curr-size]u]
140 . ds doc-str-Mx1 \*[doc-Tn-font-size]\%MirBSD\*[doc-str-Mx]
141 . if !\n[doc-arg-limit] \
143 . ds doc-macro-name Mx
144 . doc-parse-args \$@
146 . if (\n[doc-arg-limit] > \n[doc-arg-ptr]) \{\
147 . nr doc-arg-ptr +1
148 . ie (\n[doc-type\n[doc-arg-ptr]] == 2) \
149 . as doc-str-Mx1 \~\*[doc-arg\n[doc-arg-ptr]]
151 . nr doc-arg-ptr -1
153 . ds doc-arg\n[doc-arg-ptr] "\*[doc-str-Mx1]
154 . nr doc-type\n[doc-arg-ptr] 2
155 . ds doc-space\n[doc-arg-ptr] "\*[doc-space]
156 . nr doc-num-args (\n[doc-arg-limit] - \n[doc-arg-ptr])
157 . nr doc-arg-limit \n[doc-arg-ptr]
158 . if \n[doc-num-args] \
159 . doc-parse-space-vector
160 . doc-print-recursive
164 . ds tN \*[doc-Tn-font-size]
192 .\"-
201 .Bk -words
204 .Fl T Oo Ar \&! Oc Ns Ar tty
206 .Ar \&\-
216 .Nm builtin-name
232 .Pa http://www.mirbsd.org/mksh\-faq.htm#sowhatismksh
238 .Bl -tag -width XcXstring
266 For non-interactive shells, the
275 .Ql \-
301 .Ql \-
310 .Bl -bullet -compact
328 option of the built-in command
339 The shell reads commands from standard input; all non-option arguments
361 .Pq Ql \&\- ,
367 built-in command can also be used on the command line:
378 option is specified, the first non-option argument specifies the name
380 If there are no non-option
385 option is used and there is a non-option argument, it is used as the name;
390 command line could not be opened, or non-zero if a fatal syntax error
400 A non-privileged login shell processes the user profile next.
401 A non-privileged interactive shell checks the value of the
407 it is processed; non-existence is silently ignored.
412 The shell begins parsing its input by removing any backslash-newline
416 characters (space, tab and newline) or meta-characters
429 The meta-characters are used in building the following
445 is used to create co-processes (see
446 .Sx Co-processes
469 Whitespace and meta-characters can be quoted individually using a backslash
504 introduces an old-style command substitution (see
515 .Xr csh 1 Ns -style
530 .Em simple-commands ,
532 .Em compound-commands ,
539 A simple-command consists of some combination of parameter assignments
550 The command may be a shell built-in command, a function
562 constructs (built-in commands, functions, compound-commands, pipelines, lists,
563 etc.) are all well-defined and are described where the construct is
611 is non-zero.
626 .Qq left-associative .
629 .Bd -literal -offset indent
651 operator starts a co-process which is a special kind of asynchronous process
653 .Sx Co-processes
672 .Bd -literal -offset indent
684 .Bd -literal -offset indent
693 .Bl -tag -width 4n
736 .Bl -tag -width 4n
742 Evaluate the remaining pattern-list tuples.
753 .Oo Ic in Ar word ... Oc Ic ;
812 .Ic then Ar list ; Oc
814 .Oo Ic else Ar list ; Oc
830 fail (i.e. exit with non-zero status), the
837 statement is that of whatever non-conditional
840 that is executed; if no non-conditional
844 .Oo Ic in Ar word No ... Oc ;
877 This process continues until an end-of-file
885 statement is used to exit the loop, non-zero otherwise.
912 is non-zero.
918 is a pre-checked loop.
935 .Bl -bullet
951 .Dq Ic \-f ,
967 .Bd -literal -offset indent
968 $ [[ \-r foo && $(\*(Ltfoo) = b*r ]]
979 .Bd -literal -offset indent
994 are reserved words, not meta-characters.
1040 results of double-quoted substitutions, and the old-style form of command
1041 substitution has backslash-quoting for double quotes enabled.
1044 inside a double-quoted string is followed by
1059 If a single-quoted string is preceded by an unquoted
1063 the expanded result is treated as any other single-quoted string.
1064 If a double-quoted string is preceded by an unquoted
1093 Universal Coded Character Set codepoint to UTF-8 (see
1121 In C style mode, raw octet-yielding octal sequences
1128 as they can and terminate with the first non-xdigit; below
1137 .Ic Ctrl- Ns Li % ,
1153 An expanded alias is re-processed to check for more aliases.
1167 .Bd -literal -offset indent
1168 autoload=\*(aq\e\ebuiltin typeset \-fu\*(aq
1169 functions=\*(aq\e\ebuiltin typeset \-f\*(aq
1170 hash=\*(aq\e\ebuiltin alias \-t\*(aq
1171 history=\*(aq\e\ebuiltin fc \-l\*(aq
1172 integer=\*(aq\e\ebuiltin typeset \-i\*(aq
1175 nameref=\*(aq\e\ebuiltin typeset \-n\*(aq
1177 r=\*(aq\e\ebuiltin fc \-e \-\*(aq
1178 type=\*(aq\e\ebuiltin whence \-v\*(aq
1200 This option is set automatically for non-interactive shells.
1222 The first step the shell takes in executing a simple-command is to perform
1240 Parsing the current-environment command substitution requires a space,
1256 the, initially empty, expression-local variable
1277 .Pf non- Ev IFS
1283 .Pf non- Ev IFS
1349 when the substitution is part of a double-quoted string); a backslash
1364 (or the newline-keeping
1367 .St -p1003.1
1371 .Bd -literal -offset indent
1405 That is, they are a 32-bit unsigned integer.
1412 .Pf ${ Ar name Oo Ar expr Oc }
1449 can be followed by a simple-command, in which case the assignments are in
1458 the old and new values are string-concatenated with no separator.
1505 .Bl -tag -width Ds
1507 .It ${ Ar name No :\- Ar word No }
1547 built-in).
1558 The parsing rules also differ on whether the expression is double-quoted:
1560 then uses double-quoting rules, except for the double quote itself
1578 .Bl -tag -width Ds -compact
1600 or \-1 if
1757 A quoted expression safe for re-entry, whose value is the value of the
1776 .Bl -tag -width "1 .. 9"
1789 .It Ev \-
1794 The exit status of the last non-asynchronous command executed.
1817 built-in.
1843 .Bl -tag -width "KSH_VERSION"
1857 built-in command.
1865 built-in command will display the resulting directory when a match is found
1872 is non-zero and sane enough (minimum is 12x3), defaults to 80; similar for
1967 Set by string comparisons (= and !=) in double-bracket test
2028 The name (self-identification) and version of the shell (read-only).
2093 for non-root users,
2112 root-vs-user distinguishing clause are (in this example) executed at
2116 .Bd -literal
2117 PS1=\*(aq${USER:=$(id \-un)}\*(aq"@${HOSTNAME:=$(hostname)}:\e$PWD $(
2121 Note that since the command-line editors try to figure out how long the prompt
2126 character (such as Ctrl-A) followed by a carriage return and then delimiting
2133 if you did not have any non-printing characters.
2149 .Bd -literal -offset indent
2157 .Bd -literal -offset indent
2219 In parameter assignments (such as those preceding a simple-command or those
2234 .Ql \- ,
2248 The home directory of previously expanded login names are cached and re-used.
2252 .Ic alias \-d fac=/usr/local/facilities; cd \*(TIfac/bin ) .
2255 .Bd -unfilled -offset indent
2305 .Bl -tag -width Ds
2313 .Ql \-
2315 .Dq Li \&[a0\-9]
2320 .Ql \-
2442 .Bl -tag -width XXxxmarker
2522 .It \*(Lt\*(Lt\- Ns Ar marker
2542 co-process; or the character
2543 .Ql \- ,
2600 For simple-commands, redirections may appear anywhere in the command; for
2601 compound-commands
2611 .Dl $ cat /foo/bar 2\*(Gt&1 \*(Gt/dev/null \*(Ba pr \-n \-t
2631 type (a 32-bit signed integer), unless they begin with a sole
2635 .Po a 32-bit unsigned integer Pc .
2637 Expressions may contain alpha-numeric parameter identifiers, array references
2642 .Bd -literal -offset indent
2643 + \- ! \*(TI ++ \-\-
2647 .Bd -literal -offset indent
2649 = += \-= *= /= %= \*(Lt\*(Lt= \*(Gt\*(Gt= \*(ha\*(Lt= \*(ha\*(Gt= &= \*(ha= \*(Ba=
2658 + \-
2663 .Bd -literal -offset indent
2668 .Bd -literal -offset indent
2672 Integer constants and expressions are calculated using an exactly 32-bit
2681 Additionally, base-16 integers may be specified by prefixing them with
2683 .Pq case-insensitive
2686 built-in utility.
2694 extension, numbers to the base of one are treated as either (8-bit
2697 .Ic utf8\-mode
2718 for UTF-8 mode handling.
2721 .Bl -tag -width Ds -offset indent
2724 .It unary \-
2730 Arithmetic (bit-wise) NOT.
2737 .It \-\-
2742 Separates two arithmetic expressions; the left-hand side is evaluated first,
2744 The result is the value of the expression on the right-hand side.
2748 .No += \-= *= /= %= \*(Lt\*(Lt= \*(Gt\*(Gt=
2775 the result is 1 if either argument is non-zero, 0 if not.
2779 the result is 1 if both arguments are non-zero, 0 if not.
2780 The right argument is evaluated only if the left argument is non-zero.
2782 Arithmetic (bit-wise) OR.
2784 Arithmetic (bit-wise) XOR
2785 (exclusive-OR).
2787 Arithmetic (bit-wise) AND.
2807 .It + \- * /
2828 is non-zero, the result is
2832 The non-result argument is not evaluated.
2834 .Ss Co-processes
2835 A co-process (which is a pipeline created with the
2841 The input and output of the co-process can also be manipulated using
2846 Once a co-process has been started, another can't
2847 be started until the co-process exits, or until the co-process's input has been
2851 If a co-process's input is redirected in this way, the next
2852 co-process to be started will share the output with the first co-process,
2853 unless the output of the initial co-process has been redirected using an
2857 Some notes concerning co-processes:
2858 .Bl -bullet
2860 The only way to close the co-process's input (so the co-process reads an
2861 end-of-file) is to redirect the input to a numbered file descriptor and then
2863 .Ic exec 3\*(Gt&p; exec 3\*(Gt&\-
2865 In order for co-processes to share a common output, the shell must keep the
2867 This means that end-of-file will not be
2868 detected until all co-processes sharing the co-process's output have exited
2875 portion of the co-process output when the most recently started co-process
2876 (instead of when all sharing co-processes) exits.
2882 is true if the co-process input has been duplicated to another file descriptor
2889 .Ic function Ar function-name
2891 .Ar function-name Ns \&()
2897 built-in)
2904 are searched after special built-in commands, before builtins and the
2909 .Ic unset Fl f Ar function-name .
2925 continued (i.e. the shell searches the regular built-in command table and
2983 .Bl -bullet
2986 (Bourne-style functions leave $0 untouched).
2991 can be used properly both inside and outside the function (Bourne-style
3006 .Bl -bullet
3018 After evaluation of command-line arguments, redirections and parameter
3019 assignments, the type of command is determined: a special built-in command,
3024 Special built-in commands differ from other commands in that the
3027 cause a non-interactive shell to exit, and parameter assignments that are
3029 Regular built-in commands are different only in that the
3033 POSIX special built-in utilities:
3057 Once the type of command has been determined, any command-line parameter
3060 The following describes the special and regular built-in commands and
3061 builtin-like reserved words, as well as some optional utilities:
3063 .Bl -tag -width false -compact
3129 .Oo Fl d \*(Ba t Oo Fl r Oc \*(Ba
3130 .Fl +x Oc
3135 .Ar ... Oc
3145 .Li \&[][A\-Za\-z0\-9_!%+,.@:\-]
3146 are valid in names, except they may not begin with a plus or hyphen-minus, and
3194 .Pq built-in alias
3226 .Ar string Ns = Ns Op Ar editing-command
3238 .Ar editing-command
3248 will be replaced by the given NUL-terminated
3257 .No Ctrl- Ns Li Z .
3261 are supported, some multi-character sequences can be supported.
3267 inner-most
3279 .Op Fl \-
3283 Execute the built-in command
3290 .Pq regular , decl-forwarder
3309 .Pq Dq Li \-
3314 option is supported as a no-op.
3356 .Dq Li \- ,
3420 .Pq regular , decl-forwarder
3433 and secondly, special built-in commands lose their specialness
3440 system-dependent, is used instead of the current
3456 exits with a non-zero status.
3467 inner-most
3499 this utility is not portable; use the standard Korn shell built-in utility
3532 .Dq Li \-n .
3541 Hide and unhide built-in utilities, aliases and functions and those defined in
3551 .Dq Li \-n\ \&
3554 is given) or re-enabled.
3599 that are not built-in to the shell).
3615 .Pq keeps assignments , special, decl-util
3623 .Dq Li \-
3628 commands suitable for re-entry.
3632 Null command required for shebang-like functionality.
3636 A command that exits with a non-zero status.
3641 .Fl l Op Fl n Oc
3675 .Cm \-e \- \*(Ba Fl s
3681 Re-execute the selected command (the previous command by default) after
3693 .Cm \-e \-
3696 is identical: re-execute the selected command without invoking an editor.
3698 .Ic alias r=\*(aqfc \-e \-\*(aq
3712 .Pq built-in alias
3764 returns a non-zero exit status.
3766 .Ql \-
3767 .Pq non-option argument
3769 .Dq Li \-\-
3790 .Pq built-in alias
3809 .Pq built-in alias
3818 .Ar ... Oc
3820 .Pq built-in alias
3851 .No \- Ns Ar signum \*(Ba
3852 .No \- Ns Ar signame Oc
3871 .Op Ar exit-status ...
3875 .Ar exit-status .
3885 0 (1) if the last expression evaluated to non-zero (zero).
3898 .Ar ... Oc
3900 .Pq built-in alias
3946 .Ar ... Oc
3948 .Pq built-in alias
3967 .Oo Fl AcelNnprsu Ns Oo Ar n Oc \*(Ba
3968 .Fl R Op Fl n Oc
3983 .Bl -tag -width XuXnX
3997 built-in utility and the
4010 Print to the co-process (see
4011 .Sx Co-processes
4030 .Dq Li \-n
4036 .Tn POSIX Ns -mandated
4097 .Pq built-in alias
4106 .Fl n Ar z Oc
4129 .Bl -tag -width XuXnX
4143 .Ic utf8\-mode
4153 Instead of reading till end-of-line, read exactly
4161 Instead of reading till end-of-line, read up to
4166 Read from the currently active co-process (see
4167 .Sx Co-processes
4187 strips backslash-newline sequences and any remaining backslashes from input.
4198 they read an entire file if \-1 is passed as
4211 exits with a non-zero status.
4218 .Ar ... Oc
4220 .Pq keeps assignments , special, decl-util
4221 Sets the read-only attribute of the named parameters.
4224 Once a parameter is made read-only,
4227 If no parameters are specified, the names of all parameters with the read-only
4232 commands defining all read-only parameters, including their values, are
4237 .Op Fl \-
4251 resolving to an extant non-directory is also treated as error.
4255 .Op Fl \-
4294 ROT13-encrypts/-decrypts stdin to stdout.
4300 .Op Fl \-
4307 .Pq like Ic typeset \- ,
4309 .Pq Ic \-
4325 .Bl -tag -width 3n
4345 .Ic set \-A foo \-\- a b c;
4346 .Ic set \-A foo+ \-\- d e
4376 non-zero status).
4397 Enabled by default for non-interactive shells.
4442 .It Fl U \*(Ba Fl o Ic utf8\-mode
4443 Enable UTF-8 support in the
4459 .Dq UTF\-8
4462 case-insensitively; for direct builtin calls depending on the
4464 if the input begins with a UTF-8 Byte Order Mark.
4470 locale-related environment variables changes.
4477 .Ql \- ,
4497 Enable BRL emacs-like command-line editing (interactive shells only); see
4501 Enable gmacs-like command-line editing (interactive shells only).
4503 .Li transpose\-chars Pq \*(haT
4506 The shell will not (easily) exit when end-of-file is read;
4512 .It Fl o Ic inherit\-xtrace
4559 Make the exit status of a pipeline the rightmost non-zero errorlevel,
4567 .Sq \-
4578 .Ic utf8\-mode
4590 .Sq \-
4604 .Xr vi 1 Ns -like
4605 command-line editing (interactive shells only).
4609 .It Fl o Ic vi\-esccomplete
4610 In vi command-line editing, do command and file name completion when Esc
4613 .It Fl o Ic vi\-tabcomplete
4614 In vi command-line editing, do command and file name completion when Tab
4621 was set, the vi command-line mode would let the
4631 .Dq Li $\- .
4643 .Dq Li \-\-
4646 .Dq Li \-
4733 .Bl -tag -width 17n
4760 is a context dependent directory (only useful on HP-UX).
4785 .Xr unix 4 Ns -domain
4829 has non-zero length.
4846 As a non-standard extension, if the option starts with a
4850 doesn't exist (so [ \-o foo \-o \-o !foo ] returns true if and only if option
4853 The same can be achieved with [ \-o ?foo ] like in
4858 .Ql \-
4863 .Dq Li \-x
4872 occurs if the right-hand string isn't quoted.
4903 .Bd -literal -offset indent
4904 expr \-o expr Logical OR.
4905 expr \-a expr Logical AND.
4912 .Bd -literal -offset indent
4913 x=1; [ "x" \-eq 1 ] evaluates to true
4927 lower four- and three-argument forms to two- and one-argument forms,
4928 respectively; three-argument forms ultimately prefer binary operations,
4929 followed by negation and parenthesis lowering; two- and four-argument forms
4930 prefer negation followed by parenthesis; the one-argument form always implies
4944 .Dq Li \-n .
4947 instead, or the double-bracket operator (see
4983 .Bd -literal -offset indent
5004 .Bd -literal -offset indent
5015 .Pq Dq Li \-
5027 .Pq Dq Li \- ,
5070 Note that, for non-interactive shells, the trap handler cannot be changed
5087 .Pq built-in alias
5097 .No \*(Ba Fl Z Ns Op Ar n Oc
5101 .Ar ... Oc
5108 .Pq keeps assignments , decl-util
5116 .Dq Li \-
5130 .Pq Ic \&\-
5154 .Bl -tag -width Ds
5217 commands that can be used to re-create the attributes and values of
5231 Read-only attribute.
5320 .Bl -tag -width 5n
5342 On some systems, read-only maximum
5414 Set the maximum real-time priority to
5509 The exit status is non-zero if any of the parameters are read-only,
5519 .Ic kill Fl l Ar exit-status
5607 subshell commands and non-built-in, non-function commands) can be stopped;
5630 .Bl -tag -width "%+ x %% x %XX"
5634 .It %\-
5657 .Bl -tag -width "command"
5664 .Ql \-
5668 .Ic %\-
5672 .Bl -tag -width "RunningXX"
5686 .It Ar signal-description Op Dq core dumped
5739 will still operate with unsigned 32-bit arithmetic; use
5749 .Nm ksh Ns -compatible
5751 .Bl -bullet
5793 .Bl -bullet
5809 .Ev \-DMKSH_MIDNIGHTBSD01ASH_COMPAT .
5846 .Fl \-
5848 .Ev \-DMKSH_MIDNIGHTBSD01ASH_COMPAT .
5863 built-in.
5872 option is set, the shell allows emacs-like editing of the command; similarly,
5875 option is set, the shell allows vi-like editing of the command.
5939 .Bl -tag -width Ds
5946 .It auto\-insert: Op Ar n
5949 .It Xo backward\-char:
5951 .No \*(haB , \*(haXD , ANSI-CurLeft , PC-CurLeft
5956 .It Xo backward\-word:
5958 .No \*(ha[b , ANSI-Ctrl-CurLeft , ANSI-Alt-CurLeft
5966 .It beginning\-of\-history: \*(ha[\*(Lt
5968 .It beginning\-of\-line: \*(haA, ANSI-Home, PC-Home
5970 .It Xo capitalise\-word:
5977 .It clear\-screen: \*(ha[\*(haL
5978 Prints a compile-time configurable sequence to clear the screen and home
5998 .It complete\-command: \*(haX\*(ha[
6003 .It complete\-file: \*(ha[\*(haX
6008 .It complete\-list: \*(haI, \*(ha[=
6016 .It Xo delete\-char\-backward:
6024 .It Xo delete\-char\-forward:
6026 .No ANSI-Del , PC-Del
6031 .It Xo delete\-word\-backward:
6040 .It Xo delete\-word\-forward:
6047 .It Xo down\-history:
6049 .No \*(haN , \*(haXB , ANSI-CurDown , PC-CurDown
6056 .Ic down\-history
6058 .Ic search\-history ,
6059 .Ic search\-history\-up
6061 .Ic up\-history
6063 .It Xo downcase\-word:
6070 .It Xo edit\-line:
6075 .Ic fc \-e \&"${VISUAL:\-${EDITOR:\-vi}}" Fl \- Ar n
6086 .It end\-of\-history: \*(ha[\*(Gt
6088 .It end\-of\-line: \*(haE, ANSI-End, PC-End
6091 Acts as an end-of-file; this is useful because edit-mode input disables
6093 .It Xo eot\-or\-delete:
6100 .Ic delete\-char\-forward .
6103 .It evaluate\-region: \*(ha[\*(haE
6108 .It exchange\-point\-and\-mark: \*(haX\*(haX
6110 .It expand\-file: \*(ha[*
6116 .It Xo forward\-char:
6118 .No \*(haF , \*(haXC , ANSI-CurRight , PC-CurRight
6123 .It Xo forward\-word:
6125 .No \*(ha[f , ANSI-Ctrl-CurRight , ANSI-Alt-CurRight
6130 .It Xo goto\-history:
6136 .It Xo kill\-line:
6140 .It kill\-region: \*(haW
6142 .It Xo kill\-to\-eol:
6156 .It list\-command: \*(haX?
6159 .It list\-file: \*(haX\*(haY
6168 .It newline\-and\-next: \*(haO
6172 .Ic up\-history ,
6173 .Ic search\-history
6175 .Ic search\-history\-up .
6176 .It Xo no\-op:
6180 .It prefix\-1: \*(ha[
6181 Introduces a 2-character command sequence.
6182 .It prefix\-2: \*(haX , \*(ha[[ , \*(ha[O
6183 Introduces a multi-character command sequence.
6184 .It Xo prev\-hist\-word:
6190 word (zero-based) of the previous (on repeated execution, second-last,
6191 third-last, etc.) command is inserted at the cursor.
6195 .It quote\-region: \*(ha[Q
6202 .It Xo search\-character\-backward:
6209 .It Xo search\-character\-forward:
6216 .It search\-history: \*(haR
6225 .Ic prefix\-1
6227 .Ic prefix\-1
6229 .Ic prefix\-2
6235 .Ic search\-history
6240 .It search\-history\-up: ANSI-PgUp, PC-PgUp
6244 .Ic up\-history .
6245 .It search\-history\-down: ANSI-PgDn, PC-PgDn
6249 .Ic down\-history .
6251 .Ic up\-history ,
6252 .Ic search\-history
6254 .Ic search\-history\-up .
6255 .It set\-mark\-command: \*(ha[ Ns Aq space
6257 .It transpose\-chars: \*(haT
6263 .It Xo up\-history:
6265 .No \*(haP , \*(haXA , ANSI-CurUp , PC-CurUp
6270 .It Xo upcase\-word:
6284 .It yank\-pop: \*(ha[y
6291 .Bd -literal
6292 print \-nr \-\- "${x@/[\e"\-\e$\e&\-*:\-?[\e\e\e`\e{\-\e}${IFS\-$\*(aq \et\en\*(aq}]/\e\e$KSH_MATCH…
6296 The vi command-line editing mode has not yet been brought up to the
6298 It is 8-bit clean but specifically does not support UTF-8 or MBCS.
6300 The vi command-line editor in
6305 .Bl -bullet
6333 .Xr ex 1 Ns -style
6358 .Bl -tag -width XJXXXXM
6383 .Ic set Fl o Ic vi\-tabcomplete .
6404 non-letter, non-digit, non-underscore and non-whitespace characters (e.g.\&
6407 .Dq big-word
6408 is a sequence of non-whitespace characters.
6416 .Bl -tag -width 10n
6418 .Oo Ar n Oc Ns _
6422 big-word from the last command in the history at the current position and enter
6433 .Oo Ar n Oc Ns g
6441 .Oo Ar n Oc Ns v
6444 .Ic fc \-e \&"${VISUAL:\-${EDITOR:\-vi}}" Fl \- Ar n
6456 Command or file name expansion is applied to the current big-word (with an
6459 if the word contains no file globbing characters)\*(EMthe big-word is replaced
6461 If the current big-word is the first on the line
6472 Command expansion will match the big-word against all aliases, functions and
6473 built-in commands as well as any executable files found by searching the
6477 File name expansion matches the big-word against the files in the
6482 .Oo Ar n Oc Ns \e ,
6483 .Oo Ar n Oc Ns \*(haF ,
6484 .Oo Ar n Oc Ns Aq Tab ,
6486 .Oo Ar n Oc Ns Aq Esc
6489 Replace the current big-word with the
6493 .Ic vi\-tabcomplete
6497 .Ic vi\-esccomplete
6508 List all the commands or files that match the current big-word.
6520 Intra-line movement commands:
6521 .Bl -tag -width Ds
6523 .Oo Ar n Oc Ns h and
6524 .Oo Ar n Oc Ns \*(haH
6530 .Oo Ar n Oc Ns l and
6531 .Oo Ar n Oc Ns Aq space
6539 Move to the first non-whitespace character.
6541 .Oo Ar n Oc Ns \*(Ba
6548 .Oo Ar n Oc Ns b
6554 .Oo Ar n Oc Ns B
6558 big-words.
6560 .Oo Ar n Oc Ns e
6566 .Oo Ar n Oc Ns E
6568 Move forward to the end of the big-word,
6572 .Oo Ar n Oc Ns w
6578 .Oo Ar n Oc Ns W
6582 big-words.
6588 .Oo Ar n Oc Ns f Ns Ar c
6595 .Oo Ar n Oc Ns F Ns Ar c
6602 .Oo Ar n Oc Ns t Ns Ar c
6609 .Oo Ar n Oc Ns T Ns Ar c
6616 .Oo Ar n Oc Ns \&;
6624 .Oo Ar n Oc Ns \&,
6633 Inter-line movement commands:
6634 .Bl -tag -width Ds
6636 .Oo Ar n Oc Ns j ,
6637 .Oo Ar n Oc Ns + ,
6639 .Oo Ar n Oc Ns \*(haN
6645 .Oo Ar n Oc Ns k ,
6646 .Oo Ar n Oc Ns \- ,
6648 .Oo Ar n Oc Ns \*(haP
6654 .Oo Ar n Oc Ns G
6662 .Oo Ar n Oc Ns g
6670 .Oo Ar n Oc Ns / Ns Ar string
6683 .Oo Ar n Oc Ns \&? Ns Ar string
6689 .Oo Ar n Oc Ns n
6696 .Oo Ar n Oc Ns N
6702 .It Ar ANSI-CurUp , PC-PgUp
6707 .It Ar ANSI-CurDown , PC-PgDn
6715 .Bl -tag -width Ds
6717 .Oo Ar n Oc Ns a
6723 only replicated if command mode is re-entered i.e.\&
6727 .Oo Ar n Oc Ns A
6733 .Oo Ar n Oc Ns i
6739 replicated if command mode is re-entered i.e.\&
6743 .Oo Ar n Oc Ns I
6747 except the insertion is done just before the first non-blank character.
6749 .Oo Ar n Oc Ns s
6756 All characters from the first non-blank character to the
6759 .Oo Ar n Oc Ns c Ns Ar move-cmd
6762 .Ar n move-cmd Ns s
6764 .Ar move-cmd
6767 the line starting from the first non-blank character is changed.
6772 .Oo Ar n Oc Ns x
6778 .Oo Ar n Oc Ns X
6786 .Oo Ar n Oc Ns d Ns Ar move-cmd
6789 .Ar n move-cmd Ns s ;
6790 .Ar move-cmd
6795 .Oo Ar n Oc Ns r Ns Ar c
6802 .Oo Ar n Oc Ns R
6811 .Oo Ar n Oc Ns \*(TI
6817 .Oo Ar n Oc Ns y Ns Ar move-cmd
6820 .Ar n move-cmd Ns s
6822 .Ar move-cmd
6829 .Oo Ar n Oc Ns p
6835 .Oo Ar n Oc Ns P
6843 .Bl -tag -width Ds
6849 .Oo Ar n Oc Ns \&.
6865 .Bl -tag -width XetcXsuid_profile -compact
6867 User mkshrc profile (non-privileged interactive shells); see
6873 User profile (non-privileged login shells); see
6917 .Xr utf\-8 7 ,
6921 .Pa http://www.mirbsd.org/mksh\-faq.htm
6926 .Pa http://www.mirbsd.org/ksh\-chan.htm
6933 .%O "ISBN 978\-0\-13\-516972\-8 (0\-13\-516972\-0)"
6942 .%O "ISBN 978\-0\-13\-182700\-4 (0\-13\-182700\-6)"
6952 .%O "ISBN 978\-0\-672\-32490\-1 (0\-672\-32490\-3)"
6961 .%O "ISBN 978\-1\-55937\-255\-8 (1\-55937\-255\-9)"
6969 .%O "ISBN 978\-1\-56592\-054\-5 (1\-56592\-054\-6)"
6978 .%O "ISBN 978\-0\-596\-00195\-7 (0\-596\-00195\-9)"
6984 .%I "Addison-Wesley Professional"
6986 .%O "ISBN 978\-0\-201\-56324\-5 (0\-201\-56324\-X)"
6989 .An -nosplit
7020 .Nm mksh\-os2
7022 .An KO Myung-Hun Aq Mt [email protected] .
7024 .Nm mksh\-w32
7034 .Pa http://www.mirbsd.org/TaC\-mksh.txt
7041 .\" KO Myung-Hun (mksh for OS/2).
7061 provides a consistent 32-bit integer arithmetic implementation, both
7063 and wraparound defined, even (defying POSIX) on 36-bit and 64-bit systems.
7066 currently uses OPTU-16 internally, which is the same as UTF-8 and CESU-8
7075 .Bd -literal -offset indent
7083 not overwritten by same-number entries from the persistent
7084 history file; truncating the on-disc file to
7088 for the in-memory portion of the history is slow, should use
7094 .\" with vendor patches from insert-your-name-here,
7109 .Aq Mt miros\-[email protected]
7110 (please note the EU-DSGVO/GDPR notice on