Lines Matching full:shell
39 .Nd command interpreter (shell)
87 1003.2 and 1003.2a specifications for the shell.
89 features which make it appear similar in some respects to the Korn shell,
90 but it is not a Korn shell clone (see
94 plus a few Berkeley extensions, are being incorporated into this shell.
99 to be a tutorial or a complete specification of the shell.
101 The shell is a command that reads lines from either a file or the
104 (although a user can select a different shell with the
107 The shell implements a language that has flow control
113 interactive and non-interactive use (shell scripts).
115 can be typed directly to the running shell or can be put into a file and
116 the file can be executed directly by the shell.
118 If no args are present and if the standard input of the shell
124 option is not present, the shell is considered an interactive shell.
125 An interactive shell generally prompts before each command and handles
128 the shell inspects argument 0, and if it begins with a dash
130 the shell is also considered
131 a login shell.
134 A login shell first reads commands
142 is set on entry to a shell, or is set in the
144 of a login shell, the shell next reads
150 file, and commands that are executed for every shell inside the
166 file is read for every invocation of the shell, including shell scripts
191 the shell treats the first argument as the name of a file from which to
192 read commands (a shell script), and the remaining arguments are set as the
193 positional parameters of the shell ($1, $2, etc).
194 Otherwise, the shell
246 This is useful for checking the syntax of shell scripts.
249 that is not set, and if the shell is not interactive, exit immediately.
251 The shell writes its input to standard error as it is read.
273 Force the shell to behave interactively.
279 This option has no effect when set after the shell has
303 Make an interactive shell always print the new directory name when
309 The shell reads input in terms of lines from a file and breaks it up into
311 characters that are special to the shell called
324 words to the shell, such as operators, whitespace, or keywords.
352 shell and are recognized at the beginning of a line and
367 and after checking for reserved words, the shell
387 The shell interprets the words it reads according to a language, the
394 then the shell has recognized a simple command.
398 If a simple command has been recognized, the shell performs
416 variable assignments recognized in item 1 affect the current shell.
486 There are three types of commands: shell functions, builtin commands, and
490 When a shell function is executed, all of the shell positional parameters
491 (except $0, which remains unchanged) are set to the arguments of the shell
499 This all occurs within the current shell.
501 Shell builtins are executed internally to the shell, without spawning a
507 When a normal program is executed, the shell runs the program,
516 then) the shell will interpret the program in a subshell.
517 The child shell will reinitialize itself in this case,
519 new shell had been invoked to handle the ad-hoc shell script, except that
520 the location of hashed commands located in the parent shell will be
524 misleadingly and sporadically refer to a shell script without a magic
525 number as a "shell procedure".
527 When locating a command, the shell first looks to see if it has a shell
536 The shell searches each entry in
548 of other shell commands.
555 an executed shell function.
586 command is inherited from the shell, as usual.
598 If the pipeline is not in the background (discussed later), the shell
625 child of the invoking shell (unless it is a shell builtin, in which case
626 it executes in the current shell -- but any effect it has on the
630 shell executes the command asynchronously -- that is, the shell does not
637 If the shell is not interactive, the standard input of an asynchronous
645 If command is followed by an ampersand, the shell starts the
726 .Sx Shell Patterns
740 Builtin commands grouped into a (list) will not affect the current shell.
741 The second form does not fork another shell so is slightly more efficient.
778 The shell uses dynamic scoping, so that if you make the variable x local to
787 local any shell options that are changed via the set command inside the
798 The shell maintains a set of parameters.
800 When starting up, the shell turns all the environment
801 variables into shell variables.
813 The shell sets these initially to the values of its command line arguments
814 that follow the name of the shell script.
863 by the shell.
865 Expands to the process ID of the invoked shell.
869 command executed from the current shell.
872 Expands to the name of the shell or shell script.
969 is written to standard error and the shell exits with a nonzero exit status.
971 An interactive shell need not exit.
990 .Sx Shell Patterns ) ,
1033 The shell expands the command substitution by executing command in a
1056 The shell expands all tokens in the expression for parameter expansion,
1059 Next, the shell treats this as an arithmetic expression and
1063 arithmetic expansion the shell scans the results of
1067 The shell treats each character of the
1088 .Ss Shell Patterns
1145 The commands in the specified file are read and executed by the shell.
1149 is specified, the shell defines the alias
1173 Execute the specified command but ignore shell functions when searching
1176 have a shell function with the same name as a builtin command.)
1206 command or the shell variable
1216 In an interactive shell, the
1228 Unless command is omitted, the shell process is replaced with the
1229 specified program (which must be a real program, not a shell builtin or
1237 Terminate the shell process.
1240 is given it is used as the exit status of the shell; otherwise the
1247 The shell allows the value of a variable to be set at the
1269 to an interactive shell.
1371 the shell variable specified by
1373 and its index in the shell variable
1375 When the shell is invoked,
1380 builtin will place it in the shell variable
1449 The shell maintains a hash table which remembers the
1483 which are children of the current shell process.
1561 The shell allows the value of a variable
1581 With no arguments, it lists the values of all shell variables.
1587 The third use of the set command is to set the values of the shell's
1631 Cause the shell to parse and execute action when any of the specified
1638 the action is executed when the shell exits.
1644 When the shell forks off a subshell, it resets trapped (but not ignored)
1649 ignored on entry to the shell.
1658 as an input to the shell that achieves the same trapping results.
1681 shell keyword, alias, shell builtin,
1762 is specified, the shell removes that alias.
1805 while in command mode will pass the line to the shell.
1817 Errors that are detected by the shell, such as a syntax error, will cause the
1818 shell to exit with a non-zero exit status.
1819 If the shell is not an
1820 interactive shell, the execution of the shell file will be aborted.
1822 the shell will return the exit status of the last command executed, or
1850 The frequency in seconds that the shell checks for the arrival of mail
1860 separated list of file names, for the shell to check for incoming mail.
1888 The default terminal setting for the shell.
1890 children of the shell, and is used in the history editing modes.
1892 The number of lines in the history buffer for the shell.
1924 Setuid shell scripts should be avoided at all costs, as they are a