Reads commands from the file named in ENV. If the environment variable ENV is set on entry to a shell, or is set in the. A login shell first reads commands from the files /etc/profile and This is normally done automatically by the system when the user first logs in. When first starting, the shell inspects argument 0, and if it begins with a dash '-', the shell is also considered a login An interactive shell generally prompts before each command and handles programming and command errorsĭifferently (as described below). Present, the shell is considered an interactive shell. If no args are present and if the standard input of the shell is connected to a terminal (or if the -i flag is set), and the -c option is not That is, commands can be typedĭirectly to the running shell or can be put into a file and the file can be executed directly by the shell. It incorporates many features to aid interactive useĪnd has the advantage that the interpretative language is common to both interactive and non-interactive use (shell scripts). The shell implements a language that hasįlow control constructs, a macro facility that provides a variety of features in addition to data storage. Is running when a user logs into the system (although a user can select a different shell with the chsh(1) command). The shell is a command that reads lines from either a file or the terminal, interprets them, and generally executes other commands. This man page is not intended to be a tutorial or a complete specification of the shell. We expect POSIXĬonformance by the time 4.4 BSD is released. Only features designated by POSIX, plus a few Berkeley extensions, are being incorporated into this shell. This version has many features which make it appear similar in some respects to the Korn shell, but it is not a Korn The current version of sh is in the process of being changed to conform with the POSIX 1003.2Īnd 1003.2a specifications for the shell. Sh is the standard command interpreter for the system.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |