builtins.c revision 1
1N/A/*********************************************************************** 1N/A* This software is part of the ast package * 1N/A* Copyright (c) 1982-2011 AT&T Intellectual Property * 1N/A* and is licensed under the * 1N/A* Common Public License, Version 1.0 * 1N/A* by AT&T Intellectual Property * 1N/A* A copy of the License is available at * 1N/A* (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) * 1N/A* Information and Software Systems Research * 1N/A* David Korn <dgk@research.att.com> * 1N/A***********************************************************************/ 1N/A /* The following is for builtins that do not accept -- options */ 1N/A#
define Q(f) #f
/* libpp cpp workaround -- fixed 2005-04-11 */ 1N/A * The order up through "[" is significant 1N/A#
endif /* _bin_newgrp || _usr_bin_newgrp */ 1N/A#
endif /* SHOPT_ECHOPRINT */ 1N/A#
endif /* SIGTSTP */ 1N/A#
endif /* _cmd_universe */ 1N/A#
endif /* SHOPT_FS_3D */ 1N/A#
define _JOB_ "[+?Each \ajob\a can be specified as one of the following:]{" \
1N/A "[+\anumber\a?\anumber\a refers to a process id.]" \
1N/A "[+-\anumber\a?\anumber\a refers to a process group id.]" \
1N/A "[+\apool\a.\anum\a?refers to job \anum\a in background pool named \apool\a.]" \
1N/A "[+\apool\a?refers to all jobs in background pool named \apool\a.]" \
1N/A "[+%\anumber\a?\anumber\a refer to a job number.]" \
1N/A "[+%\astring\a?Refers to a job whose name begins with \astring\a.]" \
1N/A "[+%??\astring\a?Refers to a job whose name contains \astring\a.]" \
1N/A "[+%+ \bor\b %%?Refers to the current job.]" \
1N/A "[+%-?Refers to the previous job.]" \
1N/A#
define _JOB_ "[+?Each \ajob\a can be specified as one of the following:]{" \
1N/A "[+\anumber\a?\anumber\a refers to a process id.]" \
1N/A "[+-\anumber\a?\anumber\a refers to a process group id.]" \
1N/A "[+%\anumber\a?\anumber\a refer to a job number.]" \
1N/A "[+%\astring\a?Refers to a job whose name begins with \astring\a.]" \
1N/A "[+%??\astring\a?Refers to a job whose name contains \astring\a.]" \
1N/A "[+%+ \bor\b %%?Refers to the current job.]" \
1N/A "[+%-?Refers to the previous job.]" \
1N/A"[a?Set the export attribute for each variable whose name does not " 1N/A "contain a \b.\b that you assign a value in the current shell " 1N/A"[b?The shell writes a message to standard error as soon it detects that " 1N/A "a background job completes rather than waiting until the next prompt.]" 1N/A"[e?A simple command that has an non-zero exit status will cause the shell " 1N/A "to exit unless the simple command is:]{" 1N/A "[++?contained in an \b&&\b or \b||\b list.]" 1N/A "[++?the command immediately following \bif\b, \bwhile\b, or \buntil\b.]" 1N/A "[++?contained in the pipeline following \b!\b.]" 1N/A"[f?Pathname expansion is disabled.]" 1N/A"[h?Obsolete. Causes each command whose name has the syntax of an " 1N/A "alias to become a tracked alias when it is first encountered.]" 1N/A"[k?This is obsolete. All arguments of the form \aname\a\b=\b\avalue\a " 1N/A "are removed and placed in the variable assignment list for " 1N/A "the command. Ordinarily, variable assignments must precede " 1N/A "command arguments.]" 1N/A"[m?When enabled, the shell runs background jobs in a separate process " 1N/A "group and displays a line upon completion. This mode is enabled " 1N/A "by default for interactive shells on systems that support job " 1N/A"[n?The shell reads commands and checks for syntax errors, but does " 1N/A "not execute the command. Usually specified on command invocation.]" 1N/A"[o]:?[option?If \aoption\a is not specified, the list of options and " 1N/A "their current settings will be written to standard output. When " 1N/A "invoked with a \b+\b the options will be written in a format " 1N/A "that can be reinput to the shell to restore the settings. " 1N/A "The value of \aoption\a must be one of the following:]{" 1N/A "[+allexport?Equivalent to \b-a\b.]" 1N/A "[+bgnice?Runs background jobs at lower priorities.]" 1N/A "[+braceexpand?Equivalent to \b-B\b.] " 1N/A "[+errexit?Equivalent to \b-e\b.]" 1N/A "[+globstar?Equivalent to \b-G\b.]" 1N/A "editing mode is the same as \bemacs\b editing mode " 1N/A "except for the handling of \b^T\b.]" 1N/A "[+hashall?Equivalent to \b-h\b and \b-o trackall\b. Available " 1N/A "in bash compatibility mode only.]" 1N/A "[+history?Enable command history. Available in bash " 1N/A "compatibility mode only. On by default in interactive " 1N/A "[+histexpand?Equivalent to \b-H\b.]" 1N/A "[+ignoreeof?Prevents an interactive shell from exiting on " 1N/A "reading an end-of-file.]" 1N/A "[+keyword?Equivalent to \b-k\b.]" 1N/A "[+markdirs?A trailing \b/\b is appended to directories " 1N/A "resulting from pathname expansion.]" 1N/A "[+monitor?Equivalent to \b-m\b.]" 1N/A "[+multiline?Use multiple lines when editing lines that are " 1N/A "longer than the window width.]" 1N/A "[+noclobber?Equivalent to \b-C\b.]" 1N/A "[+noexec?Equivalent to \b-n\b.]" 1N/A "[+noglob?Equivalent to \b-f\b.]" 1N/A "[+nolog?This has no effect. It is provided for backward " 1N/A "[+notify?Equivalent to \b-b\b.]" 1N/A "[+nounset?Equivalent to \b-u\b.]" 1N/A "[+onecmd?Equivalent to \b-t\b. Available in bash compatibility " 1N/A "[+physical?Equivalent to \b-P\b. Available in bash " 1N/A "compatibility mode only.]" 1N/A "[+posix?Turn on POSIX compatibility. Available in bash " 1N/A "compatibility mode only. Bash in POSIX mode is not the " 1N/A "[+pipefail?A pipeline will not complete until all components " 1N/A "of the pipeline have completed, and the exit status " 1N/A "of the pipeline will be the value of the last " 1N/A "command to exit with non-zero exit status, or will " 1N/A "be zero if all commands return zero exit status.]" 1N/A "[+privileged?Equivalent to \b-p\b.]" 1N/A "[+showme?Simple commands preceded by a \b;\b will be traced " 1N/A "as if \b-x\b were enabled but not executed.]" 1N/A "[+trackall?Equivalent to \b-h\b.]" 1N/A "[+verbose?Equivalent to \b-v\b.]" 1N/A "[+viraw?Does not use canonical input mode when using \bvi\b " 1N/A "[+xtrace?Equivalent to \b-x\b.]" 1N/A"[p?Privileged mode. Disabling \b-p\b sets the effective user id to the " 1N/A "real user id, and the effective group id to the real group id. " 1N/A "Enabling \b-p\b restores the effective user and group ids to their " 1N/A "values when the shell was invoked. The \b-p\b option is on " 1N/A "whenever the real and effective user id is not equal or the " 1N/A "real and effective group id is not equal. User profiles are " 1N/A "not processed when \b-p\b is enabled.]" 1N/A"[r?restricted. Enables restricted shell. This option cannot be unset once " 1N/A"[t?Obsolete. The shell reads one command and then exits.]" 1N/A"[u?If enabled, the shell displays an error message when it tries to expand " 1N/A "a variable that is unset.]" 1N/A"[v?Verbose. The shell displays its input onto standard error as it " 1N/A"[x?Execution trace. The shell will display each command after all " 1N/A "expansion and before execution preceded by the expanded value " 1N/A "of the \bPS4\b parameter.]" 1N/A"[B?Enable {...} group expansion. On by default.]" 1N/A"[C?Prevents existing regular files from being overwritten using the \b>\b " 1N/A "redirection operator. The \b>|\b redirection overrides this " 1N/A "\bnoclobber\b option.]" 1N/A"[G?Causes \b**\b by itself to also match all sub-directories during pathname " 1N/A "[H?Enable \b!\b-style history expansion similar to \bcsh\b.]" 1N/A"[-1c?\n@(#)$Id: break (AT&T Research) 1999-04-07 $\n]" 1N/A"[+NAME?break - break out of loop ]" 1N/A"[+DESCRIPTION?\bbreak\b is a shell special built-in that exits the " 1N/A "smallest enclosing \bfor\b, \bselect\b, \bwhile\b, or \buntil\b loop, " 1N/A "or the \an\a-th enclosing loop if \an\a is specified. " 1N/A "Execution continues at the command following the loop(s).]" 1N/A"[+?If \an\a is given, it must be a positive integer >= 1. If \an\a " 1N/A "is larger than the number of enclosing loops, the last enclosing " 1N/A "loop will be exited.]" 1N/A"[+SEE ALSO?\bcontinue\b(1), \breturn\b(1)]" 1N/A"[-1c?\n@(#)$Id: continue (AT&T Research) 1999-04-07 $\n]" 1N/A"[+NAME?continue - continue execution at top of the loop]" 1N/A"[+DESCRIPTION?\bcontinue\b is a shell special built-in that continues " 1N/A "execution at the top of smallest enclosing enclosing \bfor\b, " 1N/A "\bselect\b, \bwhile\b, or \buntil\b loop, if any; or the top of " 1N/A "the \an\a-th enclosing loop if \an\a is specified.]" 1N/A"[+?If \an\a is given, it must be a positive integer >= 1. If \an\a " 1N/A "is larger than the number of enclosing loops, the last enclosing " 1N/A " loop will be used.]" 1N/A"[+SEE ALSO?\bbreak\b(1)]" 1N/A"[-1c?\n@(#)$Id: alias (AT&T Research) 1999-07-07 $\n]" 1N/A"[+NAME?alias - define or display aliases]" 1N/A"[+DESCRIPTION?\balias\b creates or redefines alias definitions " 1N/A "or writes the existing alias definitions to standard output. " 1N/A "An alias definitions provides a string value that will replace " 1N/A "a command name when the command is read. Alias names can " 1N/A "contain any printable character which is not special to the shell. " 1N/A "If an alias value ends in a space or tab, then the word " 1N/A "following the command name the alias replaces is also checked " 1N/A "to see whether it is an alias.]" 1N/A"[+?If no \aname\as are specified then the names and values of all " 1N/A "aliases are written to standard output. Otherwise, for " 1N/A "each \aname\a that is specified, and \b=\b\avalue\a is not " 1N/A "specified, the current value of the alias corresponding to " 1N/A "\aname\a is written to standard output. If \b=\b\avalue\a is " 1N/A "specified, the alias \aname\a will be created or redefined.]" 1N/A"[+?\balias\b is built-in to the shell as a declaration command so that " 1N/A "field splitting and pathname expansion are not performed on " 1N/A "the arguments. Tilde expansion occurs on \avalue\a. An alias " 1N/A "definition only affects scripts read by the current shell " 1N/A "environment. It does not effect scripts run by this shell.]" 1N/A"[p?Causes the output to be in the form of alias commands that can be used " 1N/A "as input to the shell to recreate the current aliases.]" 1N/A"[t?Used for tracked aliases. These are aliases that connect a " 1N/A "command name to the pathname of the command and are reset " 1N/A "when the \bPATH\b variable is unset. The tracked aliases feature is " 1N/A"[x?Ignored, this option is obsolete.]" 1N/A"\n[name[=value]...]\n" 1N/A "[+0?Successful completion.]" 1N/A "[+>0?One or more \aname\a operands did not have an alias " 1N/A "definition, or an error occurred.]" 1N/A"[+SEE ALSO?\bsh\b(1), \bunalias\b(1)]" 1N/A"[-1c?\n@(#)$Id: builtin (AT&T Research) 2010-08-04 $\n]" 1N/A"[+NAME?builtin - add, delete, or display shell built-ins]" 1N/A"[+DESCRIPTION?\bbuiltin\b can be used to add, delete, or display " 1N/A "built-in commands in the current shell environment. A built-in command " 1N/A "executes in the current shell process and can have side effects in the " 1N/A "current shell. On most systems, the invocation time for built-in " 1N/A "commands is one or two orders of magnitude less than commands that " 1N/A "create a separate process.]" 1N/A"[+?For each \apathname\a specified, the basename of the pathname " 1N/A "determines the name of the built-in. For each basename, the shell looks " 1N/A "for a C level function in the current shell whose name is determined by " 1N/A "prepending \bb_\b to the built-in name. If \apathname\a contains a " 1N/A "\b/\b, then the built-in is bound to this pathname. A built-in bound to " 1N/A "a pathname will only be executed if \apathname\a is the first " 1N/A "executable found during a path search. Otherwise, built-ins are found " 1N/A "prior to performing the path search.]" 1N/A"[+?If no \apathname\a operands are specified, then \bbuiltin\b displays " 1N/A "the current list of built-ins, or just the special built-ins if \b-s\b " 1N/A "is specified, on standard output. The full pathname for built-ins that " 1N/A "are bound to pathnames are displayed.]" 1N/A"[+?Libraries containing built-ins can be specified with the \b-f\b " 1N/A "option. If the library contains a function named \blib_init\b(), this " 1N/A "function will be invoked with argument \b0\b when the library is " 1N/A "loaded. The \blib_init\b() function can load built-ins by invoking an " 1N/A "appropriate C level function. In this case there is no restriction on " 1N/A "the C level function name.]" 1N/A"[+?The C level function will be invoked with three arguments. The first " 1N/A "two are the same as \bmain\b() and the third one is a pointer.]" 1N/A"[+?\bbuiltin\b cannot be invoked from a restricted shell.]" 1N/A"[d?Deletes each of the specified built-ins. Special built-ins cannot be " 1N/A"[f]:[lib?On systems with dynamic linking, \alib\a names a shared " 1N/A "library to load and search for built-ins. Libraries are searched for " 1N/A "library directories. The system " 1N/A "dependent shared library prefix and/or suffix may be omitted. Once a " 1N/A "library is loaded, its symbols become available for the current and " 1N/A "subsequent invocations of \bbuiltin\b. Multiple libraries can be " 1N/A "specified with separate invocations of \bbuiltin\b. Libraries are " 1N/A "searched in the reverse order in which they are specified.]" 1N/A"[l?List the library base name, plugin YYYYMMDD version stamp, and full " 1N/A "path for \b-f\b\alib\a on one line on the standard output.]" 1N/A"[s?Display only the special built-ins.]" 1N/A "[+0?All \apathname\a operands and \b-f\b options processed " 1N/A "[+>0?An error occurred.]" 1N/A"[+SEE ALSO?\bwhence\b(1)]" 1N/A"[-1c?\n@(#)$Id: cd (AT&T Research) 1999-06-05 $\n]" 1N/A"[+NAME?cd - change working directory ]" 1N/A"[+DESCRIPTION?\bcd\b changes the current working directory of the " 1N/A "current shell environment.]" 1N/A"[+?In the first form with one operand, if \adirectory\a begins with " 1N/A "\b/\b, or if the first component is \b.\b or \b..\b, the " 1N/A "directory will be changed to this directory. If directory is \b-\b, " 1N/A "the directory will be changed to the last directory visited. " 1N/A "Otherwise, if the \bCDPATH\b environment variable is set, \bcd\b " 1N/A "searches for \adirectory\a relative to each directory named in " 1N/A "the colon separated list of directories defined by \bCDPATH\b. " 1N/A "If \bCDPATH\b not set, \bcd\b changes to the directory specified " 1N/A "by \adirectory\a.]" 1N/A"[+?In the second form, the first occurrence of the string \aold\a " 1N/A "contained in the pathname of the present working directory " 1N/A "is replaced by the string \anew\a and the resulting string " 1N/A "is used as the directory to which to change.]" 1N/A"[+?When invoked without operands and when the \bHOME\b environment " 1N/A "variable is set to a nonempty value, the directory named by " 1N/A "the \bHOME\b environment variable will be used. If \bHOME\b " 1N/A "is empty or unset, \bcd\b will fail.]" 1N/A"[+?When \bcd\b is successful, the \bPWD\b environment variable will be set " 1N/A "to the name of an absolute pathname that does not contain any " 1N/A "\b..\b components corresponding to the new directory. The " 1N/A "environment variable \bOLDPWD\b will be set to the previous " 1N/A "value of \bPWD\b. If the new directory is found by searching " 1N/A "the directories named by \bCDPATH\b, or if \adirectory\a is \b-\b, " 1N/A "or if the two operand form is used, the new value of \bPWD\b will be " 1N/A "written to standard output.]" 1N/A"[+?If both \b-L\b and \b-P\b are specified, the last one specified will " 1N/A "be used. If neither \b-P\b or \b-L\b is specified then the " 1N/A "behavior will be determined by the \bgetconf\b parameter " 1N/A "\bPATH_RESOLVE\b. If \bPATH_RESOLVE\b is \bphysical\b, " 1N/A "then the behavior will be as if \b-P\b were specified. Otherwise, " 1N/A "the behavior will be as if \b-L\b were specified.]" 1N/A"[L?Handle each pathname component \b..\b in a logical fashion by moving " 1N/A "up one level by name in the present working directory.]" 1N/A"[P?The present working directory is first converted to an absolute pathname " 1N/A "that does not contain symbolic link components and symbolic name " 1N/A "components are expanded in the resulting directory name.]" 1N/A "[+0?Directory successfully changed.]" 1N/A "[+>0?An error occurred.]" 1N/A"[+SEE ALSO?\bpwd\b(1), \bgetconf\b(1)]" 1N/A"[-1c?\n@(#)$Id: command (AT&T Research) 2003-08-01 $\n]" 1N/A"[+NAME?command - execute a simple command]" 1N/A"[+DESCRIPTION?Without \b-v\b or \b-V\b, \bcommand\b executes \acommand\a " 1N/A "with arguments given by \aarg\a, suppressing the shell function lookup " 1N/A "that normally occurs. In addition, if \acommand\a is a special " 1N/A "built-in command, then the special properties are removed so that " 1N/A "failures will not cause the script that executes it to terminate.]" 1N/A"[+?With the \b-v\b or \b-V\b options, \bcommand\b is equivalent to the " 1N/A "\bwhence\b(1) command.]" 1N/A"[p?Causes a default path to be searched rather than the one defined by the " 1N/A "value of \bPATH\b.]" 1N/A"[v?Equivalent to \bwhence\b \acommand\a [\aarg\a ...]].]" 1N/A"[x?If \acommand\a fails because there are too many \aarg\as, it will be " 1N/A "invoked multiple times with a subset of the arguments on each " 1N/A "invocation. Arguments that occur prior to the first word that expand " 1N/A "to multiple arguments and arguments that occur after the last word " 1N/A "that expands to multiple arguments will be passed on each invocation. " 1N/A "The exit status will be the maximum invocation exit status.]" 1N/A"[V?Equivalent to \bwhence \b-v\b \acommand\a [\aarg\a ...]].]" 1N/A"\n[command [arg ...]]\n" 1N/A"[+EXIT STATUS?If \acommand\a is invoked, the exit status of \bcommand\b " 1N/A "will be that of \acommand\a. Otherwise, it will be one of " 1N/A "[+0?\bcommand\b completed successfully.]" 1N/A "[+>0?\b-v\b or \b-V\b has been specified and an error occurred.]" 1N/A "[+126?\acommand\a was found but could not be invoked.]" 1N/A "[+127?\acommand\a could not be found.]" 1N/A"[+SEE ALSO?\bwhence\b(1), \bgetconf\b(1)]" 1N/A"[-1c?@(#)$Id: \b.\b (AT&T Research) 2000-04-02 $\n]" 1N/A"[+NAME?\b.\b - execute commands in the current environment]" 1N/A"[+DESCRIPTION?\b.\b is a special built-in command that executes commands " 1N/A "from a function or a file in the current environment.]" 1N/A"[+?If \aname\a refers to a function defined with the \bfunction\b \aname\a " 1N/A "syntax, the function executes in the current environment as " 1N/A "if it had been defined with the \aname\a\b()\b syntax so that " 1N/A "there is no scoping. Otherwise, commands from the file defined " 1N/A "by \aname\a are executed in the current environment. Note that " 1N/A "the complete script is read before it begins to execute so that " 1N/A "any aliases defined in this script will not take effect until " 1N/A "the script completes execution.]" 1N/A"[+?When \aname\a refers to a file, the \bPATH\b variable is searched " 1N/A "for the file containing commands. In this case execute permission " 1N/A "is not required for \aname\a.]" 1N/A"[+?If any \aarg\as are specified, these become the positional parameters " 1N/A "for the duration of the function or script and are restored " 1N/A"\n name [arg ...]\n" 1N/A"[+EXIT STATUS?If \aname\a is found, then the exit status is that " 1N/A "of the last command executed. Otherwise, since this is a special " 1N/A "built-in, an error will cause a non-interactive shell to exit with " 1N/A "a non-zero exit status. An interactive shell returns a non-zero exit " 1N/A "status to indicate an error.]" 1N/A"[+SEE ALSO?\bcommand\b(1), \bksh\b(1)]" 1N/A#
endif /* !ECHOPRINT */ 1N/A"[-1c?\n@(#)$Id: eval (AT&T Research) 1999-07-07 $\n]" 1N/A"[+NAME?eval - create a shell command and process it]" 1N/A"[+DESCRIPTION?\beval\b is a shell special built-in command that constructs " 1N/A "a command by concatenating the \aarg\as together, separating each " 1N/A "with a space. The resulting string is then taken as input to " 1N/A "the shell and evaluated in the current environment. Note that " 1N/A "command words are expanded twice; once to construct \aarg\a, and " 1N/A "again when the shell executes the constructed command.]" 1N/A"[+?It is not an error if \aarg\a is not given.]" 1N/A"[+EXIT STATUS?If \aarg\a is not specified, the exit status is \b0\b. " 1N/A "Otherwise, it is the exit status of the command defined by the " 1N/A "\aarg\a operands.]" 1N/A"[+SEE ALSO?\bexec\b(1), \btrap\b(1), \b.\b(1)]" 1N/A"[-1c?\n@(#)$Id: exec (AT&T Research) 1999-07-10 $\n]" 1N/A"[+NAME?exec - execute command, open/close and duplicate file descriptors]" 1N/A"[+DESCRIPTION?\bexec\b is a special built-in command that can be used to " 1N/A "manipulate file descriptors or to replace the current shell " 1N/A "with a new command.]" 1N/A"[+?If \acommand\a is specified, then the current shell process will be " 1N/A "replaced by \acommand\a rather than running \acommand\a and waiting " 1N/A "for it to complete. Note that there is no need to use " 1N/A "\bexec\b to enhance performance since the shell implicitly " 1N/A "uses the exec mechanism internally whenever possible.]" 1N/A"[+?If no operands are specified, \bexec\b can be used to open or " 1N/A "close files, or to manipulate file descriptors from \b0\b to " 1N/A "\b9\b in the current shell environment using the standard " 1N/A "redirection mechanism available with all commands. The " 1N/A "close-on-exec flags will be set on file descriptor numbers " 1N/A "greater than \b2\b that are opened this way so that they " 1N/A "will be closed when another program is invoked.]" 1N/A"[+?Because \bexec\b is a special command, any failure will cause the " 1N/A "script that invokes it to exit. This can be prevented by " 1N/A "invoking \bexec\b from the \bcommand\b utility.]" 1N/A"[+?\bexec\b cannot be invoked from a restricted shell to create " 1N/A "files or to open a file for writing or appending.]" 1N/A"[c?Clear all environment variables before executions except variable " 1N/A "assignments that are part of the current \bexec\b command.]" 1N/A"[a]:[name?\bargv[0]]\b will be set to \aname\a for \acommand\a]" 1N/A"\n[command [arg ...]]\n" 1N/A"[+EXIT STATUS?If \acommand\a is specified, \bexec\b does not return. " 1N/A "Otherwise, the exit status is one of the following:]{" 1N/A "[+0?All I/O redirections were successful.]" 1N/A "[+>0?An error occurred.]" 1N/A"[+SEE ALSO?\bcommand\b(1), \beval\b(1)]" 1N/A"[-1c?\n@(#)$Id: exit (AT&T Research) 1999-07-07 $\n]" 1N/A"[+NAME?exit - exit the current shell]" 1N/A"[+DESCRIPTION?\bexit\b is shell special built-in that causes the " 1N/A "shell that invokes it to exit. Before exiting the shell, if the " 1N/A "\bEXIT\b trap is set it will be invoked.]" 1N/A"[+?If \an\a is given, it will be used to set the exit status.]" 1N/A"[+EXIT STATUS?If \an\a is specified, the exit status is the least significant " 1N/A "eight bits of the value of \an\a. Otherwise, the exit status is the " 1N/A "exit status of preceding command. When invoked inside a trap, the " 1N/A "preceding command means the command that invoked the trap.]" 1N/A"[+SEE ALSO?\bbreak\b(1), \breturn\b(1)]" 1N/A"[-1c?\n@(#)$Id: export (AT&T Research) 1999-07-07 $\n]" 1N/A"[+NAME?export - set export attribute on variables]" 1N/A"[+DESCRIPTION?\bexport\b sets the export attribute on each of " 1N/A "the variables specified by \aname\a which causes them " 1N/A "to be in the environment of subsequently executed commands. " 1N/A "If \b=\b\avalue\a is specified, the variable \aname\a is " 1N/A "set to \avalue\a.]" 1N/A"[+?If no \aname\as are specified then the names and values of all " 1N/A "exported variables are written to standard output.]" 1N/A"[+?\bexport\b is built-in to the shell as a declaration command so that " 1N/A "field splitting and pathname expansion are not performed on " 1N/A "the arguments. Tilde expansion occurs on \avalue\a.]" 1N/A"[p?Causes the output to be in the form of \bexport\b commands that can be " 1N/A "used as input to the shell to recreate the current exports.]" 1N/A"\n[name[=value]...]\n" 1N/A "[+0?Successful completion.]" 1N/A "[+>0?An error occurred.]" 1N/A"[+SEE ALSO?\bsh\b(1), \btypeset\b(1)]" 1N/A":[-1c?\n@(#)$Id: getopts (AT&T Research) 2005-01-01 $\n]" 1N/A"[-author?Glenn Fowler <gsf@research.att.com>]" 1N/A"[+NAME?\f?\f - parse utility options]" 1N/A"[+DESCRIPTION?The \bgetopts\b utility can be used to retrieve options and " 1N/A "arguments from a list of arguments given by \aargs\a or the positional " 1N/A "parameters if \aargs\a is omitted. It can also generate usage messages " 1N/A "and a man page for the command based on the information in \aoptstring\a.]" 1N/A"[+?Each time it is invoked, the \bgetopts\b utility places the value " 1N/A "of the next option in the shell variable specified by the \aname\a " 1N/A "operand and the index of the next argument to be processed in the " 1N/A "shell variable \bOPTIND\b. When the shell is invoked \bOPTIND\b " 1N/A "is initialized to \b1\b. When an option requires or permits an option " 1N/A "argument, \bgetopts\b places the option argument in the shell " 1N/A "variable \bOPTARG\b. Otherwise \bOPTARG\b is set to \b1\b when the " 1N/A "option is set and \b0\b when the option is unset.]" 1N/A"[+?The \aoptstring\a string consists of alpha-numeric characters, " 1N/A "the special characters +, -, ?, :, and <space>, or character groups " 1N/A "enclosed in [...]]. Character groups may be nested in {...}. " 1N/A "Outside of a [...]] group, a single new-line followed by zero or " 1N/A "more blanks is ignored. One or more blank lines separate the " 1N/A "options from the command argument synopsis.]" 1N/A"[+?Each [...]] group consists of an optional label, " 1N/A "optional attributes separated by :, and an " 1N/A "optional description string following ?. The characters from the ? " 1N/A "to the end of the next ]] are ignored for option parsing and short " 1N/A "usage messages. They are used for generating verbose help or man pages. " 1N/A "The : character may not appear in the label. " 1N/A "The ? character must be specified as ?? in the label and the ]] character " 1N/A "must be specified as ]]]] in the description string. " 1N/A "Text between two \\b (backspace) characters indicates " 1N/A "that the text should be emboldened when displayed. " 1N/A "Text between two \\a (bell) characters indicates that the text should " 1N/A "be emphasized or italicized when displayed. " 1N/A "Text between two \\v (vertical tab) characters indicates " 1N/A "that the text should displayed in a fixed width font. " 1N/A "Text between two \\f (formfeed) characters will be replaced by the " 1N/A "output from the shell function whose name is that of the enclosed text.]" 1N/A"[+?All output from this interface is written to the standard error.]" 1N/A"[+?There are several group types:]{" 1N/A "[+1.?A group of the form " 1N/A "[-[\aversion\a]][\aflag\a[\anumber\a]]]]...[?\atext\a]]]] " 1N/A "appearing as the first group enables the extended interface. \aversion\a " 1N/A "specifies the interface version, currently \b1\b. The latest version is " 1N/A "assumed if \aversion\a is omitted. Future enhancements " 1N/A "may increment \aversion\a, but all versions will be supported. \atext\a " 1N/A "typically specifies an SCCS or CVS identification string. Zero or more " 1N/A "\aflags\a with optional \anumber\a values may be specified to control " 1N/A "[++?Arguments beginning with + are considered options.]" 1N/A "[+c?Cache this \aoptstring\a for multiple passes. Used to optimize " 1N/A "builtins that may be called many times within the same process.]" 1N/A "[+i?Ignore this \aoptstring\a when generating help. Used when " 1N/A "combining \aoptstring\a values from multiple passes.]" 1N/A "[+l?Display only \alongname\a options in help messages.]" 1N/A "[+n?Associate -\anumber\a and +\anumber\a options with the first " 1N/A "option with numeric arguments.]" 1N/A "[+o?The \b-\b option character prefix is optional (supports " 1N/A "obsolete \bps\b(1) option syntax.)]" 1N/A "[+p?\anumber\a specifies the number of \b-\b characters that must " 1N/A "prefix long option names. The default is \b2\b; \b0\b, \b1\b or " 1N/A "\b2\b are accepted (e.g., \bp0\b for \bdd\b(1) and \bp1\b for " 1N/A "[+s?\anumber\a specifies the \b--??man\b section number, " 1N/A "\b1\b by default.]" 1N/A "[+2.?An option specification of the form " 1N/A "[\aoption\a[!]][=\anumber\a]][:\alongname\a]][?\atext\a]]]]. In this " 1N/A "case the first field is the option character; this is the value returned " 1N/A "in the \aname\a operand when the option is matched. If there is no " 1N/A "option character then a two or more digit number should be specified. " 1N/A "This number will be returned as the value of the \aname\a operand if the " 1N/A "long option is matched. If \aoption\a is followed by \b!\b then the option " 1N/A "character sense is the inverse of the longname sense. For options that do " 1N/A "not take values \bOPTARG\b will be set to \b0\b for \b!\b inverted option " 1N/A "characters and \b1\b otherwise. =\anumber\a optionally specifies a number to " 1N/A "be returned in the \aname\a operand instead of the option character. A " 1N/A "longname is specified by \b--\b\alongname\a and is matched by the shortest " 1N/A "non-ambiguous prefix of all long options. * in the \alongname\a field " 1N/A "indicates that only characters up to that point need to match, provided " 1N/A "any additional characters match exactly. The enclosing [ and ]] can be " 1N/A "omitted for an option that does not have a longname or descriptive text.]" 1N/A "[+3.?An option argument specification. " 1N/A "Options that take arguments can be followed by : (string value) or # " 1N/A "(numeric value) and an option argument specification. An option argument " 1N/A "specification consists of the option argument name as field 1. " 1N/A "The remaining \b:\b separated fields are a type name and zero or more of " 1N/A "the special attribute words \blistof\b, \boneof\b, and \bignorecase\b. " 1N/A "A default option value may be specified in the final field as " 1N/A "\b:=\b\adefault\a. The option argument specification may be followed " 1N/A "by a list of option value descriptions enclosed in braces. " 1N/A "A long option that takes an argument is specified as " 1N/A "\b--\b\alongname\a=\avalue\a. If the : or # is followed by ? then the " 1N/A "option argument is optional. If only the option character form is " 1N/A "specified then the optional argument value is not set if the next " 1N/A "argument starts with - or +.]" 1N/A "[+4.?A option value description.]" 1N/A "[+5.?A argument specification. A list of valid option argument values " 1N/A "can be specified by enclosing them inside a {...} following " 1N/A "the option argument specification. Each of the permitted " 1N/A "values can be specified with a [...]] containing the " 1N/A "value followed by a description.]" 1N/A "[+6.?A group of the form [+\\n...]] will display the characters " 1N/A "representing ... in fixed with font without adding line breaks.]" 1N/A "[+7.?A group of the form [+\aname\a?\atext\a]] specifies a section " 1N/A "\aname\a with descriptive \atext\a. If \aname\a is omitted then " 1N/A "\atext\a is placed in a new paragraph.]" 1N/A "[+8.?A group of the form [-\aname\a?\atext\a]] specifies entries " 1N/A "for the \bIMPLEMENTATION\b section.]" 1N/A"[+?A leading : character in \aoptstring\a " 1N/A "affects the way errors are handled. If an option character or longname " 1N/A "argument not specified in \aoptstring\a is encountered when processing " 1N/A "options, the shell variable whose name is \aname\a will be set to the ? " 1N/A "character. The shell variable \bOPTARG\b will be set to " 1N/A "the character found. If an option argument is missing or has an invalid " 1N/A "value, then \aname\a will be set to the : character and the shell variable " 1N/A "\bOPTARG\b will be set to the option character found. " 1N/A "Without the leading :, \aname\a will be set to the ? character, \bOPTARG\b " 1N/A "will be unset, and an error message will be written to standard error " 1N/A "when errors are encountered.]" 1N/A"[+?A leading + character or a + following a leading : in \aoptstring\a " 1N/A "specifies that arguments beginning with + will also be considered options.]" 1N/A"[+?The end of options occurs when:]{" 1N/A "[+1.?The special argument \b--\b is encountered.]" 1N/A "[+2.?An argument that does not begin with a \b-\b is encountered.]" 1N/A "[+3.?A help argument is specified.]" 1N/A "[+4.?An error is encountered.]" 1N/A"[+?If \bOPTIND\b is set to the value \b1\b, a new set of arguments " 1N/A"[+?\bgetopts\b can also be used to generate help messages containing command " 1N/A "usage and detailed descriptions. Specify \aargs\a as:]" 1N/A "[+-???To generate a usage synopsis.]" 1N/A "[+--?????To generate a verbose usage message.]" 1N/A "[+--????man?To generate a formatted man page.]" 1N/A "[+--????api?To generate an easy to parse usage message.]" 1N/A "[+--????html?To generate a man page in \bhtml\b format.]" 1N/A "[+--????nroff?To generate a man page in \bnroff\b format.]" 1N/A "[+--????usage?List the current \aoptstring\a.]" 1N/A "[+--??????\aname\a?List \bversion=\b\an\a, \an\a>0, " 1N/A "if the option \aname\a is recognized by \bgetopts\b.]" 1N/A"[+?When the end of options is encountered, \bgetopts\b exits with a " 1N/A "non-zero return value and the variable \bOPTIND\b is set to the " 1N/A "index of the first non-option argument.]" 1N/A"[+?The obsolete long option forms \aflag\a(\along-name\a) and " 1N/A "\aflag\a:(\along-name\a) for options that take arguments is supported " 1N/A "for backwards compatibility.]" 1N/A"a:[name?Use \aname\a instead of the command name in usage messages.]" 1N/A"\nopstring name [args...]\n" 1N/A "[+0?An option specified was found.]" 1N/A "[+1?An end of options was encountered.]" 1N/A "[+2?A usage or information message was generated.]" 1N/A"[-1c?@(#)$Id: bg (AT&T Research) 2000-04-02 $\n]" 1N/A"[+NAME?bg - resume jobs in the background]" 1N/A"[+DESCRIPTION?\bbg\b places the given \ajob\as into the background " 1N/A "and sends them a \bCONT\b signal to start them running.]" 1N/A"[+?If \ajob\a is omitted, the most recently started or stopped " 1N/A "background job is resumed or continued in the background.]" 1N/A "[+0?If all background jobs are started.]" 1N/A "[+>0?If one more jobs does not exist or there are no background " 1N/A"[+SEE ALSO?\bwait\b(1), \bfg\b(1), \bdisown\b(1), \bjobs\b(1)]" 1N/A"[-1c?@(#)$Id: fg (AT&T Research) 2000-04-02 $\n]" 1N/A"[+NAME?fg - move jobs to the foreground]" 1N/A"[+DESCRIPTION?\bfg\b places the given \ajob\as into the foreground " 1N/A "in sequence and sends them a \bCONT\b signal to start each running.]" 1N/A"[+?If \ajob\a is omitted, the most recently started or stopped " 1N/A "background job is moved to the foreground.]" 1N/A"[+EXIT STATUS?If \bfg\b brings one or more jobs into the foreground, " 1N/A "the exit status of \bfg\b will be that of the last \ajob\a. " 1N/A "If one or more jobs does not exist or has completed, \bfg\b will " 1N/A "return a non-zero exit status.]" 1N/A"[+SEE ALSO?\bwait\b(1), \bbg\b(1), \bjobs\b(1)]" 1N/A"[-1c?@(#)$Id: disown (AT&T Research) 2000-04-02 $\n]" 1N/A"[+NAME?disown - disassociate a job with the current shell]" 1N/A"[+DESCRIPTION?\bdisown\b prevents the current shell from sending " 1N/A "a \bHUP\b signal to each of the given \ajob\as when " 1N/A "the current shell terminates a login session.]" 1N/A"[+?If \ajob\a is omitted, the most recently started or stopped " 1N/A "background job is used.]" 1N/A "[+0?If all jobs are successfully disowned.]" 1N/A "[+>0?If one more \ajob\as does not exist.]" 1N/A"[+SEE ALSO?\bwait\b(1), \bbg\b(1), \bjobs\b(1)]" 1N/A"[-1c?@(#)$Id: jobs (AT&T Research) 2000-04-02 $\n]" 1N/A"[+NAME?jobs - display status of jobs]" 1N/A"[+DESCRIPTION?\bjobs\b displays information about specified \ajob\as " 1N/A "that were started by the current shell environment on standard " 1N/A "output. The information contains the job number enclosed in " 1N/A "[...]], the status, and the command line that started the job.]" 1N/A"[+?If \ajob\a is omitted, \bjobs\b displays the status of all stopped jobs, " 1N/A "background jobs, and all jobs whose status has changed since last " 1N/A "reported by the shell.]" 1N/A"[+?When \bjobs\b reports the termination status of a job, the " 1N/A "shell removes the jobs from the list of known jobs in " 1N/A "the current shell environment.]" 1N/A"[l?\bjobs\b displays process id's after the job number in addition " 1N/A "to the usual information]" 1N/A"[n?Only the jobs whose status has changed since the last prompt " 1N/A"[p?The process group leader id's for the specified jobs are displayed.]" 1N/A "[+0?The information for each job is written to standard output.]" 1N/A "[+>0?One or more jobs does not exist.]" 1N/A"[+SEE ALSO?\bwait\b(1), \bps\b(1), \bfg\b(1), \bbg\b(1)]" 1N/A"[-1cn?@(#)$Id: hist (AT&T Research) 2000-04-02 $\n]" 1N/A"[+NAME?\f?\f - process command history list]" 1N/A"[+DESCRIPTION?\b\f?\f\b lists, edits, or re-executes, commands " 1N/A "previously entered into the current shell environment.]" 1N/A"[+?The command history list references commands by number. The first number " 1N/A "in the list is selected arbitrarily. The relationship of a number " 1N/A "to its command does not change during a login session. When the " 1N/A "number reaches 32767 the number wraps around to 1 but " 1N/A "maintains the ordering.]" 1N/A"[+?When commands are edited (when the \b-l\b option is not specified), the " 1N/A "resulting lines will be entered at the end of the history list and " 1N/A "then reexecuted by the current shell. The \b\f?\f\b command that " 1N/A "caused the editing will not be entered into the history list. If the " 1N/A "editor returns a non-zero exit status, this will suppress the " 1N/A "entry into the history list and the command reexecution. Command " 1N/A "line variable assignments and redirections affect both the \f?\f " 1N/A "command and the commands that are reexecuted.]" 1N/A"[+?\afirst\a and \alast\a define the range of commands. \afirst\a and " 1N/A "\alast\a can be one of the following:]{" 1N/A "[+\anumber\a?A positive number representing a command " 1N/A "number. A \b+\b sign can precede \anumber\a.]" 1N/A "[+-\anumber\a?A negative number representing a command " 1N/A "that was executed \anumber\a commands previously. " 1N/A "For example, \b-1\b is the previous command.]" 1N/A "[+\astring\a?\astring\a indicates the most recently " 1N/A "entered command that begins with \astring\a. " 1N/A "\astring\a should not contain an \b=\b.]" 1N/A"[+?If \afirst\a is omitted, the previous command is used, unless \b-l\b " 1N/A "is specified, in which case it will default to \b-16\b and \alast\a " 1N/A "will default to \b-1\b.]" 1N/A"[+?If \afirst\a is specified and \alast\a is omitted, then \alast\a will " 1N/A "default to \afirst\a unless \b-l\b is specified in which case " 1N/A "it will default to \b-1\b.]" 1N/A"[+?If no editor is specified, then the editor specfied by the \bHISTEDIT\b " 1N/A "variable will be used if set, or the \bFCEDIT\b variable will be " 1N/A "used if set, otherwise, \bed\b will be used.]" 1N/A"[e]:[editor?\aeditor\a specifies the editor to use to edit the history " 1N/A "command. A value of \b-\b for \aeditor\a is equivalent to " 1N/A "specifiying the \b-s\b option.]" 1N/A"[l?List the commands rather than editing and reexecuting them.]" 1N/A"[N]#[num?Start at \anum\a commands back.]" 1N/A"[n?Suppress the command numbers when the commands are listed.]" 1N/A"[p?Writes the result of history expansion for each operand to standard " 1N/A "output. All other options are ignored.]" 1N/A"[r?Reverse the order of the commands.]" 1N/A"[s?Reexecute the command without invoking an editor. In this case " 1N/A "an operand of the form \aold\a\b=\b\anew\a can be specified " 1N/A "to change the first occurrence of the string \aold\a in the " 1N/A "command to \anew\a before reexecuting the command.]" 1N/A"\n[first [last] ]\n" 1N/A"[+EXIT STATUS?If a command is reexecuted, the exit status is that of " 1N/A "the command that gets reexecuted. Otherwise, it is one of the " 1N/A "[+0?Successfully completion of the listing.]" 1N/A "[+>0?An error occurred.]" 1N/A"[+SEE ALSO?\bksh\b(1), \bsh\b(1), \bed\b(1)]" 1N/A"[-1c?\n@(#)$Id: kill (AT&T Research) 1999-06-17 $\n]" 1N/A"[+NAME?kill - terminate or signal process]" 1N/A"[+DESCRIPTION?With the first form in which \b-l\b is not specified, " 1N/A "\bkill\b sends a signal to one or more processes specified by " 1N/A "\ajob\a. This normally terminates the processes unless the signal " 1N/A "is being caught or ignored.]" 1N/A"[+?If the signal is not specified with either the \b-n\b or the \b-s\b " 1N/A "option, the \bSIGTERM\b signal is used.]" 1N/A"[+?If \b-l\b is specified, and no \aarg\a is specified, then \bkill\b " 1N/A "writes the list of signals to standard output. Otherwise, \aarg\a " 1N/A "can be either a signal name, or a number representing either a " 1N/A "signal number or exit status for a process that was terminated " 1N/A "due to a signal. If a name is given the corresponding signal " 1N/A "number will be written to standard output. If a number is given " 1N/A "the corresponding signal name will be written to standard output.]" 1N/A"[l?List signal names or signal numbers rather than sending signals as " 1N/A "The \b-n\b and \b-s\b options cannot be specified.]" 1N/A"[n]#[signum?Specify a signal number to send. Signal numbers are not " 1N/A "portable across platforms, except for the following:]{" 1N/A"[s]:[signame?Specify a signal name to send. The signal names are derived " 1N/A "from their names in \b<signal.h>\b without the \bSIG\b prefix and " 1N/A "are case insensitive. \bkill -l\b will generate the list of " 1N/A "signals on the current platform.]" 1N/A "[+0?At least one matching process was found for each \ajob\a " 1N/A "operand, and the specified signal was successfully sent to at " 1N/A "least one matching process.]" 1N/A "[+>0?An error occurred.]" 1N/A"[+SEE ALSO?\bps\b(1), \bjobs\b(1), \bkill\b(2), \bsignal\b(2)]" 1N/A"[-1c?@(#)$Id: let (AT&T Research) 2000-04-02 $\n]" 1N/A"[+NAME?let - evaluate arithmetic expressions]" 1N/A"[+DESCRIPTION?\blet\b evaluates each \aexpr\a in the current " 1N/A "shell environment as an arithmetic expression using ANSI C " 1N/A "syntax. Variables names are shell variables and they " 1N/A "are recursively evaluated as arithmetic expressions to " 1N/A "get numerical values.]" 1N/A"[+?\blet\b has been made obsolete by the \b((\b...\b))\b syntax " 1N/A "of \bksh\b(1) which does not require quoting of the operators " 1N/A "to pass them as command arguments.]" 1N/A "[+0?The last \aexpr\a evaluates to a non-zero value.]" 1N/A "[+>0?The last \aexpr\a evaluates to \b0\b or an error occurred.]" 1N/A"[+SEE ALSO?\bexpr\b(1), \btest\b(1), \bksh\b(1)]" 1N/A"[-1c?\n@(#)$Id: print (AT&T Research) 2008-11-26 $\n]" 1N/A"[+NAME?print - write arguments to standard output]" 1N/A"[+DESCRIPTION?By default, \bprint\b writes each \astring\a operand to " 1N/A "standard output and appends a newline character.]" 1N/A"[+?Unless, the \b-r\b or \b-f\b option is specified, each \b\\\b " 1N/A "character in each \astring\a operand is processed specially as " 1N/A "[+\\a?Alert character.]" 1N/A "[+\\b?Backspace character.]" 1N/A "[+\\c?Terminate output without appending newline. The " 1N/A "remaining \astring\a operands are ignored.]" 1N/A "[+\\f?Formfeed character.]" 1N/A "[+\\n?Newline character.]" 1N/A "[+\\t?Tab character.]" 1N/A "[+\\v?Vertical tab character.]" 1N/A "[+\\\\?Backslash character.]" 1N/A "[+\\E?Escape character (ASCII octal 033).]" 1N/A "[+\\0\ax\a?The 8-bit character whose ASCII code is the " 1N/A "1-, 2-, or 3-digit octal number \ax\a.]" 1N/A"[+?If both \b-e\b and \b-r\b are specified, the last one specified is " 1N/A "the one that is used.]" 1N/A"[+?When the \b-f\b option is specified and there are more \astring\a " 1N/A "operands than format specifiers, the format string is " 1N/A "reprocessed from the beginning. If there are fewer \astring\a " 1N/A "operands than format specifiers, then outputting will end " 1N/A "at the first unneeded format specifier.]" 1N/A"[e?Unless \b-f\b is specified, process \b\\\b sequences in each \astring\a " 1N/A "operand as described above. This is the default behavior.]" 1N/A"[n?Do not append a new-line character to the output.]" 1N/A"[f]:[format?Write the \astring\a arguments using the format string " 1N/A "\aformat\a and do not append a new-line. See \bprintf\b for " 1N/A "details on how to specify \aformat\a.]" 1N/A"[p?Write to the current co-process instead of standard output.]" 1N/A"[r?Do not process \b\\\b sequences in each \astring\a operand as described " 1N/A"[s?Write the output as an entry in the shell history file instead of " 1N/A"[u]:[fd:=1?Write to file descriptor number \afd\a instead of standard output.]" 1N/A"[v?Treat each \astring\a as a variable name and write the value in \b%B\b " 1N/A "format. Cannot be used with \b-f\b.]" 1N/A"[C?Treat each \astring\a as a variable name and write the value in \b%#B\b " 1N/A "format. Cannot be used with \b-f\b.]" 1N/A "[+0?Successful completion.]" 1N/A "[+>0?An error occurred.]" 1N/A"[+SEE ALSO?\becho\b(1), \bprintf\b(1), \bread\b(1)]" 1N/A"[-1c?\n@(#)$Id: printf (AT&T Research) 2009-02-02 $\n]" 1N/A"[+NAME?printf - write formatted output]" 1N/A"[+DESCRIPTION?\bprintf\b writes each \astring\a operand to " 1N/A "standard output using \aformat\a to control the output format.]" 1N/A"[+?The \aformat\a operands supports the full range of ANSI C formatting " 1N/A "specifiers plus the following additional specifiers:]{" 1N/A "[+%b?Each character in the \astring\a operand is processed " 1N/A "specially as follows:]{" 1N/A "[+\\a?Alert character.]" 1N/A "[+\\b?Backspace character.]" 1N/A "[+\\c?Terminate output without appending newline. " 1N/A "The remaining \astring\a operands are ignored.]" 1N/A "[+\\f?Formfeed character.]" 1N/A "[+\\n?Newline character.]" 1N/A "[+\\t?Tab character.]" 1N/A "[+\\v?Vertical tab character.]" 1N/A "[+\\\\?Backslash character.]" 1N/A "[+\\E?Escape character (ASCII octal 033).]" 1N/A "[+\\0\ax\a?The 8-bit character whose ASCII code is " 1N/A "the 1-, 2-, or 3-digit octal number \ax\a.]" 1N/A "[+%q?Output \astring\a quoted in a manner that it can be read in " 1N/A "by the shell to get back the same string. However, empty " 1N/A "strings resulting from missing \astring\a operands will " 1N/A "[+%B?Treat the argument as a variable name and output the value " 1N/A "without converting it to a string. This is most useful for " 1N/A "variables of type \b-b\b.]" 1N/A "[+%H?Output \astring\a with characters \b<\b, \b&\b, \b>\b, " 1N/A "\b\"\b, and non-printable characters properly escaped for " 1N/A "use in HTML and XML documents.]" 1N/A "[+%P?Treat \astring\a as an extended regular expression and " 1N/A "convert it to a shell pattern.]" 1N/A "[+%R?Treat \astring\a as an shell pattern expression and " 1N/A "convert it to an extended regular expression.]" 1N/A "[+%T?Treat \astring\a as a date/time string and format it. The " 1N/A "\bT\b can be preceded by \b(\b\adformat\a\b)\b, where " 1N/A "\adformat\a is a date format as defined by the \bdate\b " 1N/A "[+%Z?Output a byte whose value is \b0\b.]" 1N/A"[+?When performing conversions of \astring\a to satisfy a numeric " 1N/A "format specifier, if the first character of \astring\a " 1N/A "is \b\"\b or \b'\b, then the value will be the numeric value " 1N/A "in the underlying code set of the character following the " 1N/A "\b\"\b or \b'\b. Otherwise, \astring\a is treated like a shell " 1N/A "arithmetic expression and evaluated.]" 1N/A"[+?If a \astring\a operand cannot be completely converted into a value " 1N/A "appropriate for that format specifier, an error will occur, " 1N/A "but remaining \astring\a operands will continue to be processed.]" 1N/A"[+?In addition to the format specifier extensions, the following " 1N/A "extensions of ANSI-C are permitted in format specifiers:]{" 1N/A "[+-?The escape sequences \b\\E\b and \b\\e\b expand to the escape " 1N/A "character which is octal \b033\b in ASCII.]" 1N/A "[+-?The escape sequence \b\\c\b\ax\a expands to Control-\ax\a.]" 1N/A "[+-?The escape sequence \b\\C[.\b\aname\a\b.]]\b expands to " 1N/A "the collating element \aname\a.]" 1N/A "[+-?The escape sequence \b\\x{\b\ahex\a\b}\b expands to the " 1N/A "character corresponding to the hexidecimal value \ahex\a.]" 1N/A "[+-?The format modifier flag \b=\b can be used to center a field to " 1N/A "a specified width.]" 1N/A "[+-?The format modifier flag \bL\b can be used with the \bc\b and " 1N/A "\bs\b formats to treat precision as character width instead " 1N/A "[+-?The format modifier flag \b,\b can be used with \bd\b and \bf\f " 1N/A "formats to cause group of digits.]" 1N/A "[+-?Each of the integral format specifiers can have a third " 1N/A "modifier after width and precision that specifies the " 1N/A "base of the conversion from 2 to 64. In this case the " 1N/A "\b#\b modifier will cause \abase\a\b#\b to be prepended to " 1N/A "[+-?The \b#\b modifier can be used with the \bd\b specifier when " 1N/A "no base is specified cause the output to be written in units " 1N/A "of \b1000\b with a suffix of one of \bk M G T P E\b.]" 1N/A "[+-?The \b#\b modifier can be used with the \bi\b specifier to " 1N/A "cause the output to be written in units of \b1024\b with " 1N/A "a suffix of one of \bKi Mi Gi Ti Pi Ei\b.]" 1N/A"[+?If there are more \astring\a operands than format specifiers, the " 1N/A "\aformat\a string is reprocessed from the beginning. If there are " 1N/A "fewer \astring\a operands than format specifiers, then string " 1N/A "specifiers will be treated as if empty strings were supplied, " 1N/A "numeric conversions will be treated as if 0 were supplied, and " 1N/A "time conversions will be treated as if \bnow\b were supplied.]" 1N/A"[+?\bprintf\b is equivalent to \bprint -f\b which allows additional " 1N/A "options to be specified.]" 1N/A"\nformat [string ...]\n" 1N/A "[+0?Successful completion.]" 1N/A "[+>0?An error occurred.]" 1N/A"[+SEE ALSO?\bdate\b(1), \bprint\b(1), \bread\b(1)]" 1N/A"[-1c?\n@(#)$Id: pwd (AT&T Research) 1999-06-07 $\n]" 1N/A"[+NAME?pwd - write working directory name]" 1N/A"[+DESCRIPTION?\bpwd\b writes an absolute pathname of the current working " 1N/A "directory to standard output. An absolute pathname is a " 1N/A "pathname that begins with \b/\b that does not contains any " 1N/A "\b.\b or \b..\b components.]" 1N/A"[+?If both \b-L\b and \b-P\b are specified, the last one specified will " 1N/A "be used. If neither \b-P\b or \b-L\b is specified then the " 1N/A "behavior will be determined by the \bgetconf\b parameter " 1N/A "\bPATH_RESOLVE\b. If \bPATH_RESOLVE\b is \bphysical\b, " 1N/A "then the behavior will be as if \b-P\b were specified. Otherwise, " 1N/A "the behavior will be as if \b-L\b were specified.]" 1N/A"[L?The absolute pathname may contains symbolic link components. This is " 1N/A"[P?The absolute pathname will not contain any symbolic link components.]" 1N/A "[+0?Successful completion.]" 1N/A "[+>0?An error occurred.]" 1N/A"[+SEE ALSO?\bcd\b(1), \bgetconf\b(1)]" 1N/A"[-1c?\n@(#)$Id: read (AT&T Research) 2006-12-19 $\n]" 1N/A"[+NAME?read - read a line from standard input]" 1N/A"[+DESCRIPTION?\bread\b reads a line from standard input and breaks it " 1N/A "into fields using the characters in value of the \bIFS\b variable " 1N/A "as separators. The escape character, \b\\\b, is used to remove " 1N/A "any special meaning for the next character and for line continuation " 1N/A "unless the \b-r\b option is specified.]" 1N/A"[+?If there are more variables than fields, the remaining variables are " 1N/A "set to empty strings. If there are fewer variables than fields, " 1N/A "the leftover fields and their intervening separators are assigned " 1N/A "to the last variable. If no \avar\a is specified then the variable " 1N/A "\bREPLY\b is used.]" 1N/A"[+?When \avar\a has the binary attribute and \b-n\b or \b-N\b is specified, " 1N/A "the bytes that are read are stored directly into \bvar\b.]" 1N/A"[+?If you specify \b?\b\aprompt\a after the first \avar\a, then \bread\b " 1N/A "will display \aprompt\a on standard error when standard input " 1N/A "is a terminal or pipe.]" 1N/A"[+?If an end of file is encountered while reading a line the data is " 1N/A "read and processed but \bread\b returns with a non-zero exit status.]" 1N/A"[A?Unset \avar\a and then create an indexed array containing each field in " 1N/A "the line starting at index 0.]" 1N/A"[C?Unset \avar\a and read \avar\a as a compound variable.]" 1N/A"[d]:[delim?Read until delimiter \adelim\a instead of to the end of line.]" 1N/A"[p?Read from the current co-process instead of standard input. An end of " 1N/A "file causes \bread\b to disconnect the co-process so that another " 1N/A"[r?Do not treat \b\\\b specially when processing the input line.]" 1N/A"[s?Save a copy of the input as an entry in the shell history file.]" 1N/A"[u]#[fd:=0?Read from file descriptor number \afd\a instead of standard input.]" 1N/A"[t]:[timeout?Specify a timeout \atimeout\a in seconds when reading from " 1N/A "a terminal or pipe.]" 1N/A"[n]#[count?Read at most \acount\a characters. For binary fields \acount\a " 1N/A "is the number of bytes.]" 1N/A"[N]#[count?Read exactly \ancount\a characters. For binary fields \acount\a " 1N/A "is the number of bytes.]" 1N/A"[v?When reading from a terminal the value of the first variable is displayed " 1N/A "and used as a default value.]" 1N/A"\n[var?prompt] [var ...]\n" 1N/A "[+0? Successful completion.]" 1N/A "[+>0?End of file was detected or an error occurred.]" 1N/A"[+SEE ALSO?\bprint\b(1), \bprintf\b(1), \bcat\b(1)]" 1N/A"[-1c?\n@(#)$Id: readonly (AT&T Research) 2008-06-16 $\n]" 1N/A"[+NAME?readonly - set readonly attribute on variables]" 1N/A"[+DESCRIPTION?\breadonly\b sets the readonly attribute on each of " 1N/A "the variables specified by \aname\a which prevents their " 1N/A "values from being changed. If \b=\b\avalue\a is specified, " 1N/A "the variable \aname\a is set to \avalue\a before the variable " 1N/A "is made readonly.]" 1N/A"[+?Within a type definition, if the value is not specified, then a " 1N/A "value must be specified when creating each instance of the type " 1N/A "and the value is readonly for each instance.]" 1N/A"[+?If no \aname\as are specified then the names and values of all " 1N/A "readonly variables are written to standard output.]" 1N/A"[+?\breadonly\b is built-in to the shell as a declaration command so that " 1N/A "field splitting and pathname expansion are not performed on " 1N/A "the arguments. Tilde expansion occurs on \avalue\a.]" 1N/A"[p?Causes the output to be in a form of \breadonly\b commands that can be " 1N/A "used as input to the shell to recreate the current set of " 1N/A "readonly variables.]" 1N/A"\n[name[=value]...]\n" 1N/A "[+0?Successful completion.]" 1N/A "[+>0?An error occurred.]" 1N/A"[+SEE ALSO?\bsh\b(1), \btypeset\b(1)]" 1N/A"[-1c?\n@(#)$Id: return (AT&T Research) 1999-07-07 $\n]" 1N/A"[+NAME?return - return from a function or dot script ]" 1N/A"[+DESCRIPTION?\breturn\b is a shell special built-in that causes the " 1N/A "function or dot script that invokes it to exit. " 1N/A "If \breturn\b is invoked outside of a function or dot script " 1N/A "it is equivalent to \bexit\b.]" 1N/A"[+?If \breturn\b is invoked inside a function defined with the \bfunction\b " 1N/A "reserved word syntax, then any \bEXIT\b trap set within the " 1N/A "then function will be invoked in the context of the caller " 1N/A "before the function returns.]" 1N/A"[+?If \an\a is given, it will be used to set the exit status.]" 1N/A"[+EXIT STATUS?If \an\a is specified, the exit status is the least significant " 1N/A "eight bits of the value of \an\a. Otherwise, the exit status is the " 1N/A "exit status of preceding command.]" 1N/A"[+SEE ALSO?\bbreak\b(1), \bexit\b(1)]" 1N/A"[+NAME?\b\f?\f\b - Shell, the standard command language interpreter]" 1N/A"[+DESCRIPTION?\b\f?\f\b is a command language interpreter that " 1N/A "executes commands read from a command line string, the " 1N/A "standard input, or a specified file.]" 1N/A"[+?If the \b-i\b option is present, or there are no \aarg\as and " 1N/A "the standard input and standard error are attached to a " 1N/A "terminal, the shell is considered to be interactive.]" 1N/A"[+?The \b-s\b and \b-c\b options are mutually exclusive. If the \b-c\b " 1N/A "option is specified, the first \aarg\a is the command-line string " 1N/A "and must be specified. Any remaining \aarg\as will be used " 1N/A "to initialize \b$0\b and positional parameters.]" 1N/A"[+?If the neither \b-s\b nor \b-c\b is specified, then the first \barg\b " 1N/A "will be the pathname of the file containing commands and \b$0\b " 1N/A "will be set to this value. If there is no file with this pathname, " 1N/A "and this pathame does not contain a \b/\b, then the \bPATH\b " 1N/A "will be searched for an executable with this name. Any remaining " 1N/A "\aarg\as will be used to initialize the positional parmaeters.]" 1N/A"[+?Any option can use a \b+\b instead of a \b-\b to disable the corresponding " 1N/A"[c?Read the commands from the first \aarg\a.]" 1N/A"[i?Specifies that the shell is interactive.]" 1N/A"[l?Invoke the shell as a login shell; \b/etc/profile\b and \b$HOME/.profile\b, " 1N/A "if they exist, are read before the first command.]" 1N/A"[r\f:restricted\f?Invoke the shell in a restricted mode. A restricted " 1N/A "shell does not permit any of the following:]{" 1N/A "[+-?Changing the working directory.]" 1N/A "[+-?Setting values or attributes of the variables \bSHELL\b, " 1N/A "\bENV\b, \bFPATH\b, or \bPATH\b.]" 1N/A "[+-?Executing any command whose name as a \b/\b in it.]" 1N/A "[+-?Redirecting output of a command with \b>\b, \b>|\b, " 1N/A "\b<>\b, or \b>>\b.]" 1N/A "[+-?Adding or deleting built-in commands or libraries with " 1N/A "[+-?Executing \bcommand -p\b \a...\a .]" 1N/A"[s?Read the commands from standard input. The positional parameters will be " 1N/A "initialized from \aarg\a.]" 1N/A"[D\f:dump-strings\f?Do not execute the script, but output the set of double " 1N/A "quoted strings preceded by a \b$\b. These strings are needed for " 1N/A "localization of the script to different locales.]" 1N/A "\b${ENV-$HOME/.kshrc}\b, if it exists, as a profile. " 1N/A "On by default for interactive shells; use \b+E\b to disable.]" 1N/A"[P?Invoke the shell as a profile shell. See \bpfexec\b(1).]" 1N/A"[R]:[file?Do not execute the script, but create a cross reference database " 1N/A "in \afile\a that can be used a separate shell script browser. The " 1N/A "-R option requires a script to be specified as the first operand.]" 1N/A#
endif /* SHOPT_KIA */ 1N/A"[I:regress]:[intercept?Enable the regression test \aintercept\a. Must be " 1N/A "the first command line option(s).]" 1N/A"[T?Enable implementation specific test code defined by mask.]#[mask]" 1N/A"[+EXIT STATUS?If \b\f?\f\b executes command, the exit status will be that " 1N/A "of the last command executed. Otherwise, it will be one of " 1N/A "[+0?The script or command line to be executed consists entirely " 1N/A "of zero or more blank lines or comments.]" 1N/A "[+>1-125?A noninteractive shell detected a syntax error, a variable " 1N/A "assignment error, or an error in a special built-in.]" 1N/A "[+126?\b-c\b and \b-s\b were not specified and the command script " 1N/A "was found on \bPATH\b but was not executable.]" 1N/A "[+127?\b-c\b and \b-s\b were not specified and the command script " 1N/A "corresponding to \aarg\a could not be found.]" 1N/A"[+SEE ALSO?\bset\b(1), \bbuiltin\b(1)]" 1N/A"+[-1c?\n@(#)$Id: set (AT&T Research) 1999-09-28 $\n]" 1N/A"[+NAME?set - set/unset options and positional parameters]" 1N/A"[+DESCRIPTION?\bset\b sets or unsets options and positional parameters. " 1N/A "Options that are specified with a \b-\b cause the options to " 1N/A "be set. Options that are specified with a \b+\b cause the " 1N/A "option to be unset.]" 1N/A"[+?\bset\b without any options or arguments displays the names and " 1N/A "values of all shell variables in the order of the collation " 1N/A "sequence in the current locale. The values are quoted so that " 1N/A "they are suitable for reinput to the shell.]" 1N/A"[+?If no \aarg\as are specified, not even the end of options argument \b--\b, " 1N/A "the positional parameters are unchanged. Otherwise, unless " 1N/A "the \b-A\b options has been specified, the positional parameters " 1N/A "are replaced by the list of \aarg\as. A first \aarg\a of " 1N/A "\b--\b is ignored when setting positional parameters.]" 1N/A"[+?For backward compatibility, a \bset\b command without any options " 1N/A "specified whose first \aarg\a is \b-\b will turn off " 1N/A "the \b-v\b and \b-x\b options. If any additional \aarg\as " 1N/A "are specified, they will replace the positional parameters.]" 1N/A"[s?Sort the positional parameters.]" 1N/A"[A]:[name?Assign the arguments sequentially to the array named by \aname\a " 1N/A "starting at subscript 0 rather than to the positional parameters.]" 1N/A"[06:default?Restore all non-command line options to the default settings.]" 1N/A"[07:state?List the current option state in the form of a \bset\b command " 1N/A "that can be executed to restore the state.]" 1N/A "[+0?No errors occurred.]" 1N/A "[+>0?An error occurred.]" 1N/A"[+SEE ALSO?\btypeset\b(1), \bshift\b(1)]" 1N/A"[-1c?\n@(#)$Id: shift (AT&T Research) 1999-07-07 $\n]" 1N/A"[+NAME?shift - shift positional parameters]" 1N/A"[+DESCRIPTION?\bshift\b is a shell special built-in that shifts the " 1N/A "positional parameters to the left by the number of places " 1N/A "defined by \an\a, or \b1\b if \an\a is omitted. The number of " 1N/A "positional parameters remaining will be reduced by the " 1N/A "number of places that are shifted.]" 1N/A"[+?If \an\a is given, it will be evaluated as an arithmetic expression " 1N/A "to determinate the number of places to shift. It is an error " 1N/A "to shift more than the number of positional parameters or a " 1N/A "negative number of places.]" 1N/A "[+0?The positional parameters were successfully shifted.]" 1N/A "[+>0?An error occurred.]" 1N/A"[+SEE ALSO?\bset\b(1)]" 1N/A"[-1c?\n@(#)$Id: sleep (AT&T Research) 2009-03-12 $\n]" 1N/A"[+NAME?sleep - suspend execution for an interval]" 1N/A"[+DESCRIPTION?\bsleep\b suspends execution for at least the time specified " 1N/A "by \aduration\a or until a \bSIGALRM\b signal is received. " 1N/A "\aduration\a may be one of the following:]" 1N/A "[+integer?The number of seconds to sleep.]" 1N/A "[+floating point?The number of seconds to sleep. The actual " 1N/A "granularity depends on the underlying system, normally " 1N/A "around 1 millisecond.]" 1N/A "[+P\an\a\bY\b\an\a\bM\b\an\a\bDT\b\an\a\bH\b\an\a\bM\b\an\a\bS?An ISO 8601 duration " 1N/A "where at least one of the duration parts must be specified.]" 1N/A "[+P\an\a\bW?An ISO 8601 duration specifying \an\a weeks.]" 1N/A "[+p\an\a\bY\b\an\a\bM\b\an\a\bDT\b\an\a\bH\b\an\a\bm\b\an\a\bS?A case insensitive " 1N/A "ISO 8601 duration except that \bM\b specifies months, \bm\b before \bs\b or \bS\b " 1N/A "specifies minutes and after specifies milliseconds, \bu\b or \bU\b specifies " 1N/A "microseconds, and \bn\b specifies nanoseconds.]" 1N/A"[s?Sleep until a signal or a timeout is received. If \aduration\a is omitted " 1N/A "or 0 then no timeout will be used.]" 1N/A "[+0?The execution was successfully suspended for at least \aduration\a " 1N/A "or a \bSIGALRM\b signal was received.]" 1N/A "[+>0?An error occurred.]" 1N/A"[+SEE ALSO?\bdate\b(1), \btime\b(1), \bwait\b(1)]" 1N/A"[-1c?\n@(#)$Id: trap (AT&T Research) 1999-07-17 $\n]" 1N/A"[+NAME?trap - trap signals and conditions]" 1N/A"[+DESCRIPTION?\btrap\b is a special built-in that defines actions to be " 1N/A "taken when conditions such as receiving a signal occur. Also, " 1N/A "\btrap\b can be used to display the current trap settings on " 1N/A"[+?If \aaction\a is \b-\b, \btrap\b resets each \acondition\a " 1N/A "to the default value. If \aaction\a is an empty string, the " 1N/A "shell ignores each of the \acondition\as if they arise. " 1N/A "Otherwise, the argument \aaction\a will be read and executed " 1N/A "by the shell as if it were processed by \beval\b(1) when one " 1N/A "of the corresponding conditions arise. The action of the trap " 1N/A "will override any previous action associated with each specified " 1N/A "\acondition\a. The value of \b$?\b is not altered by the trap " 1N/A"[+?\acondition\a can be the name or number of a signal, or one of the " 1N/A "[+EXIT?This trap is executed when the shell exits. If defined " 1N/A "within a function defined with the \bfunction\b reserved " 1N/A "word, the trap is executed in the caller's environment " 1N/A "when the function returns and the trap action is restored " 1N/A "to the value it had when it called the function.]" 1N/A "[+0?Same as EXIT.]" 1N/A "[+DEBUG?Executed before each simple command is executed but after " 1N/A "the arguments are expanded.]" 1N/A "[+ERR?Executed whenever \bset -e\b would cause the shell to exit.]" 1N/A "[+KEYBD?Executed when a key is entered from a terminal device.]" 1N/A"[+?Signal names are case insensitive and the \bsig\b prefix is optional. " 1N/A "Signals that were ignored on entry to a noninteractive shell cannot " 1N/A "trapped or reset although doing so will not report an error. The " 1N/A "use of signal numbers other than \b1\b, \b2\b, \b3\b, \b6\b, " 1N/A "\b9\b, \b14\b, and \b15\b is not portable.]" 1N/A"[+?Although \btrap\b is a special built-in, specifying a condition that " 1N/A "the shell does not know about causes \btrap\b to exit with a " 1N/A "non-zero exit status, but does not terminate the invoking shell.]" 1N/A"[+?If no \aaction\a or \acondition\as are specified then all the current " 1N/A "trap settings are written to standard output.]" 1N/A"[p?Causes the current traps to be output in a format that can be processed " 1N/A "as input to the shell to recreate the current traps.]" 1N/A"\n[action condition ...]\n" 1N/A "[+0?Successful completion.]" 1N/A "[+>0?An error occurred.]" 1N/A"[+SEE ALSO?\bkill\b(1), \beval\b(1), \bsignal\b(3)]" 1N/A"+[-1c?\n@(#)$Id: typeset (AT&T Research) 2010-12-08 $\n]" 1N/A"[+NAME?\f?\f - declare or display variables with attributes]" 1N/A"[+DESCRIPTION?Without the \b-f\b option, \b\f?\f\b sets, unsets, " 1N/A "or displays attributes of variables as specified with the " 1N/A "options. If the first option is specified with a \b-\b " 1N/A "then the attributes are set for each of the given \aname\as. " 1N/A "If the first option is specified with a \b+\b, then the specified " 1N/A "attributes are unset. If \b=\b\avalue\a is specified value is " 1N/A "assigned before the attributes are set.]" 1N/A"[+?When \b\f?\f\b is called inside a function defined with the " 1N/A "\bfunction\b reserved word, and \aname\a does not contain a " 1N/A "\b.\b, then a local variable statically scoped to that function " 1N/A"[+?Not all option combinations are possible. For example, the numeric " 1N/A "options \b-i\b, \b-E\b, and \b-F\b cannot be specified with " 1N/A "the justification options \b-L\b, \b-R\b, and \b-Z\b.]" 1N/A"[+?Note that the following preset aliases are set by the shell:]{" 1N/A "[+compound?\b\f?\f -C\b.]" 1N/A "[+float?\b\f?\f -lE\b.]" 1N/A "[+functions?\b\f?\f -f\b.]" 1N/A "[+integer?\b\f?\f -li\b.]" 1N/A "[+nameref?\b\f?\f -n\b.]" 1N/A"[+?If no \aname\as are specified then variables that have the specified " 1N/A "options are displayed. If the first option is specified with " 1N/A "a leading \b-\b then the name and value of each variable is " 1N/A "written to standard output. Otherwise, only the names are " 1N/A "written. If no options are specified or just \b-p\b is " 1N/A "specified, then the names and attributes of all variables that have " 1N/A "attributes are written to standard output. When \b-f\b is specified, " 1N/A "the names displayed will be function names.]" 1N/A"[+?If \b-f\b is specified, then each \aname\a refers to a function " 1N/A "and the only valid options are \b-u\b and \b-t\b. In this " 1N/A "case no \b=\b\avalue\a can be specified.]" 1N/A"[+?\b\f?\f\b is built-in to the shell as a declaration command so that " 1N/A "field splitting and pathname expansion are not performed on " 1N/A "the arguments. Tilde expansion occurs on \avalue\a.]" 1N/A"[a]:?[type?Indexed array. This is the default. If \b[\b\atype\a\b]]\b is " 1N/A "specified, each subscript is interpreted as a value of type \atype\a.]" 1N/A"[a?Indexed array. this is the default.]" 1N/A"[b?Each \aname\a may contain binary data. Its value is the mime " 1N/A "base64 encoding of the data. It can be used with \b-Z\b, " 1N/A "to specify fixed sized fields.]" 1N/A"[f?Each of the options and \aname\as refers to a function.]" 1N/A"[i]#?[base:=10?An integer. \abase\a represents the arithmetic base " 1N/A"[l?Without \b-i\b, sets character mapping to \btolower\b. When used " 1N/A "with \b-i\b, \b-E\b, or \b-F\b indicates long variant.]" 1N/A"[m?Move. The value is the name of a variable whose value will be " 1N/A "moved to \aname\a. The orignal variable will be unset. Cannot be " 1N/A "used with any other options.]" 1N/A"[n?Name reference. The value is the name of a variable that \aname\a " 1N/A "references. \aname\a cannot contain a \b.\b. Cannot be use with " 1N/A "any other options.]" 1N/A"[p?Causes the output to be in a format that can be used as input to the " 1N/A "shell to recreate the attributes for variables.]" 1N/A"[r?Enables readonly. Once enabled it cannot be disabled. See " 1N/A"[s?Used with \b-i\b to restrict integer size to short.]" 1N/A"[t?When used with \b-f\b, enables tracing for each of the specified " 1N/A "functions. Otherwise, \b-t\b is a user defined attribute and " 1N/A "has no meaning to the shell.]" 1N/A"[u?Without \b-f\b or \b-i\b, sets character mapping to \btoupper\b. When " 1N/A "used with \b-f\b specifies that \aname\a is a function " 1N/A "that hasn't been loaded yet. With \b-i\b specifies that the " 1N/A "value will be displayed as an unsigned integer.]" 1N/A"[x?Puts each \aname\a on the export list. See \bexport\b(1). \aname\a " 1N/A "cannot contain a \b.\b.]" 1N/A"[A?Associative array. Each \aname\a will converted to an associate " 1N/A "array. If a variable already exists, the current value will " 1N/A "become index \b0\b.]" 1N/A"[C?Compound variable. Each \aname\a will be a compound variable. If " 1N/A "\avalue\a names a compound variable it will be copied to \aname\a. " 1N/A "Otherwise if the variable already exists, it will first be unset.]" 1N/A"[E]#?[n:=10?Floating point number represented in scientific notation. " 1N/A "\an\a specifies the number of significant figures when the " 1N/A "value is expanded.]" 1N/A"[F]#?[n:=10?Floating point. \an\a is the number of places after the " 1N/A "decimal point when the value is expanded.]" 1N/A"[H?Hostname mapping. Each \aname\a holds a native pathname. Assigning a " 1N/A "UNIX format pathname will cause it to be converted to a pathname " 1N/A "suitable for the current host. This has no effect when the " 1N/A "native system is UNIX.]" 1N/A"[L]#?[n?Left justify. If \an\a is given it represents the field width. If " 1N/A "the \b-Z\b attribute is also specified, then leading zeros are " 1N/A"[M]:?[mapping?\amapping\a is the name of a character mapping known by " 1N/A "\bwctrans\b(3) such as \btolower\b or \btoupper\b. When the option " 1N/A "value \bmapping\b is omitted and there are no operands, all mapped " 1N/A "variables are displayed.]" 1N/A"[R]#?[n?Right justify. If \an\a is given it represents the field width. If " 1N/A "the \b-Z\b attribute is also specified, then zeros will " 1N/A "be used as the fill character. Otherwise, spaces are used.]" 1N/A"[X]#?[n:=2*sizeof(long long)?Floating point number represented in hexadecimal " 1N/A "notation. \an\a specifies the number of significant figures when the " 1N/A "value is expanded.]" 1N/A"[h]:[string?Used within a type definition to provide a help string " 1N/A "for variable \aname\a. Otherwise, it is ignored.]" 1N/A"[S?Used with a type definition to indicate that the variable is shared by " 1N/A "each instance of the type. When used inside a function defined " 1N/A "with the \bfunction\b reserved word, the specified variables " 1N/A "will have function static scope. Otherwise, the variable is " 1N/A "unset prior to processing the assignment list.]" 1N/A"[T]:?[tname?\atname\a is the name of a type name given to each \aname\a.]" 1N/A"[Z]#?[n?Zero fill. If \an\a is given it represents the field width.]" 1N/A"\n[name[=value]...]\n" 1N/A "[+0?No errors occurred.]" 1N/A "[+>0?An error occurred.]" 1N/A"[+SEE ALSO?\breadonly\b(1), \bexport\b(1)]" 1N/A"[-1c?@(#)$Id: ulimit (AT&T Research) 2003-06-21 $\n]" 1N/A"[+NAME?ulimit - set or display resource limits]" 1N/A"[+DESCRIPTION?\bulimit\b sets or displays resource limits. These " 1N/A "limits apply to the current process and to each child process " 1N/A "created after the resource limit has been set. If \alimit\a " 1N/A "is specified, the resource limit is set, otherwise, its current value " 1N/A "is displayed on standard output.]" 1N/A"[+?Increasing the limit for a resource usually requires special privileges. " 1N/A "Some systems allow you to lower resource limits and later increase " 1N/A "them. These are called soft limits. Once a hard limit is " 1N/A "set the resource can not be increased.]" 1N/A"[+?Different systems allow you to specify different resources and some " 1N/A "restrict how much you can raise the limit of the resource.]" 1N/A"[+?The value of \alimit\a depends on the unit of the resource listed " 1N/A "for each resource. In addition, \alimit\a can be \bunlimited\b " 1N/A "to indicate no limit for that resource.]" 1N/A"[+?If you do not specify \b-H\b or \b-S\b, then \b-S\b is used for " 1N/A "listing and both \b-S\b and \b-H\b are used for setting resources.]" 1N/A"[+?If you do not specify any resource, the default is \b-f\b.]" 1N/A"[H?A hard limit is set or displayed.]" 1N/A"[S?A soft limit is set or displayed.]" 1N/A"[a?Displays all current resource limits]" 1N/A "[+0?Successful completion.]" 1N/A "[+>0?A request for a higher limit was rejected or an error occurred.]" 1N/A"[+SEE ALSO?\bulimit\b(2), \bgetrlimit\b(2)]" 1N/A"[-1c?\n@(#)$Id: umask (AT&T Research) 1999-04-07 $\n]" 1N/A"[+NAME?umask - get or set the file creation mask]" 1N/A"[+DESCRIPTION?\bumask\b sets the file creation mask of the current " 1N/A "shell execution environment to the value specified by the " 1N/A "\amask\a operand. This mask affects the file permission bits " 1N/A "of subsequently created files. \amask\a can either be an " 1N/A "octal number or a symbolic value as described in \bchmod\b(1). " 1N/A "If a symbolic value is given, the new file creation mask is the " 1N/A "complement of the result of applying \amask\a to the complement " 1N/A "of the current file creation mask.]" 1N/A"[+?If \amask\a is not specified, \bumask\b writes the value of the " 1N/A "file creation mask for the current process to standard output.]" 1N/A"[S?Causes the file creation mask to be written or treated as a symbolic value " 1N/A "rather than an octal number.]" 1N/A "[+0?The file creation mask was successfully changed, or no " 1N/A "\amask\a operand was supplied.]" 1N/A "[+>0?An error occurred.]" 1N/A"[+SEE ALSO?\bchmod\b(1)]" 1N/A"[-1c?\n@(#)$Id: unset (AT&T Research) 1999-07-07 $\n]" 1N/A"[+NAME?unset - unset values and attributes of variables and functions]" 1N/A"[+DESCRIPTION?For each \aname\a specified, \bunset\b unsets the variable, " 1N/A "or function if \b-f\b is specified, from the current shell " 1N/A "execution environment. Readonly variables cannot be unset.]" 1N/A"[n?If \aname\a refers to variable that is a reference, the variable \aname\a " 1N/A "will be unset rather than the variable it references. Otherwise, " 1N/A "is is equivalent to \b-v\b.]" 1N/A"[f?\aname\a refers to a function name and the shell will unset the " 1N/A "function definition.]" 1N/A"[v?\aname\a refers to a variable name and the shell will unset it and " 1N/A "remove it from the environment. This is the default behavior.]" 1N/A "[+0?All \aname\as were successfully unset.]" 1N/A "[+>0?One or more \aname\a operands could not be unset " 1N/A "or an error occurred.]" 1N/A"[+SEE ALSO?\btypeset\b(1)]" 1N/A"[-1c?\n@(#)$Id: unalias (AT&T Research) 1999-07-07 $\n]" 1N/A"[+NAME?unalias - remove alias definitions]" 1N/A"[+DESCRIPTION?\bunalias\b removes the definition of each named alias " 1N/A "from the current shell execution environment, or all aliases if " 1N/A "\b-a\b is specified. It will not affect any commands that " 1N/A "have already been read and subsequently executed.]" 1N/A"[a?Causes all alias definitions to be removed. \aname\a operands " 1N/A "are optional and ignored in this case.]" 1N/A "[+0?Successful completion.]" 1N/A "[+>0?\b-a\b was not specified and one or more \aname\a operands " 1N/A "did not have an alias definition, or an error occurred.]" 1N/A"[+SEE ALSO?\balias\b(1)]" 1N/A"[-1c?\n@(#)$Id: wait (AT&T Research) 1999-06-17 $\n]" 1N/A"[+NAME?wait - wait for process or job completion]" 1N/A"[+DESCRIPTION?\bwait\b with no operands, waits until all jobs " 1N/A "known to the invoking shell have terminated. If one or more " 1N/A "\ajob\a operands are specified, \bwait\b waits until all of them " 1N/A"[+?If one ore more \ajob\a operands is a process id or process group id " 1N/A "not known by the current shell environment, \bwait\b treats each " 1N/A "of them as if it were a process that exited with status 127.]" 1N/A"[+EXIT STATUS?If \await\a is invoked with one or more \ajob\as, and all of " 1N/A "them have terminated or were not known by the invoking shell, " 1N/A "the exit status of \bwait\b will be that of the last \ajob\a. " 1N/A "Otherwise, it will be one of the following:]{" 1N/A "[+0?\bwait\b utility was invoked with no operands and all " 1N/A "processes known by the invoking process have terminated.]" 1N/A "[+127?\ajob\a is a process id or process group id that is unknown " 1N/A "to the current shell environment.]" 1N/A"[+SEE ALSO?\bjobs\b(1), \bps\b(1)]" 1N/A#
endif /* SHOPT_FS_3D */ 1N/A"[-1c?\n@(#)$Id: whence (AT&T Research) 2007-04-24 $\n]" 1N/A"[+NAME?whence - locate a command and describe its type]" 1N/A"[+DESCRIPTION?Without \b-v\b, \bwhence\b writes on standard output an " 1N/A "absolute pathname, if any, corresponding to \aname\a based " 1N/A "on the complete search order that the shell uses. If \aname\a " 1N/A "is not found, then no output is produced.]" 1N/A"[+?If \b-v\b is specified, the output will also contain information " 1N/A "that indicates how the given \aname\a would be interpreted by " 1N/A "the shell in the current execution environment.]" 1N/A"[a?Displays all uses for each \aname\a rather than the first.]" 1N/A"[f?Do not check for functions.]" 1N/A"[p?Do not check to see if \aname\a is a reserved word, a built-in, " 1N/A "an alias, or a function. This turns off the \b-v\b option.]" 1N/A"[q?Quiet mode. Returns 0 if all arguments are built-ins, functions, or are " 1N/A "programs found on the path.]" 1N/A"[v?For each name you specify, the shell displays a line that indicates " 1N/A "if that name is one of the following:]{" 1N/A "[+?Undefined function]" 1N/A "[+0?Each \aname\a was found by the shell.]" 1N/A "[+1?One or more \aname\as were not found by the shell.]" 1N/A "[+>1?An error occurred.]" 1N/A"[+SEE ALSO?\bcommand\b(1)]"