shell

Creates a subprocess to run a shell or other program

APPLICABILITY


Product

Command Type

ClearCase


cleartool subcommand


ClearCase LT


cleartool subcommand


Attache


command


MultiSite


multitool subcommand


Platform

UNIX


Windows

SYNOPSIS

sh·ell  |   !  [ command [ arg ... ] ]

DESCRIPTION

The shell command creates a subshell.

UNIX-View Context

The subshell is created with the same view context as the current process. If the current process is set to one view, but the working directory view is different, shell uses the working directory view. (See the pwv reference page for more on this topic.)

The shell command is intended for use in cleartool and multitool interactive mode. If you are using single-command mode, there is no need for this command.

RESTRICTIONS

None.

OPTIONS AND ARGUMENTS

PROGRAM TO RUN IN SUBPROCESSDefault: Runs the shell program indicated by your SHELL (UNIX) or ComSpec (Windows) environment variable (or /bin/sh (UNIX) or cmd.exe (Windows), if your environment does not include SHELL/ComSpec). The shell runs interactively until you exit from it.

NOTE TO WINDOWS USERS: Changing the ComSpec variable to a value other than cmd.exe may have undesirable side effects elsewhere in your work environment. To avoid this problem, you can invoke the alternative shell explicitly from cmd.exe, after executing shell.

command [ arg ... ]

Runs a noninteractive shell which, in turn, invokes the program command, (and, optionally, passes it one or more arguments). The subshell exits immediately after executing command.

EXAMPLES

UNIX
Windows

SEE ALSO

pwv, setview, csh(1), sh(1)