SHELL Keyword
PLBLinux Only
SHELL={value}
The SHELL variable makes it possible to define which Linux shell is initiated when an EXECUTE temporarily drops into operating system level functionality. If an EXECUTE is executed without a parameter or with a null variable, the interpreter searches the environment table for a SHELL entry to designate which operating system shell to initiate. If SHELL is not found, the default Linux shell /bin/sh is initiated. SHELL can be added to the environment table by incorporating the following into the user's login profile script (.profile):
Example:
The Linux shell normally in use for the terminal should be the one defined. In the above example, the default /bin/sh shell is defined. Failing to incorporate a SHELL variable within the user's .profile, results in the default /bin/sh shell being used.
See Also: PLBLinux Environment Variables, Compiler and Runtime Options
![]() |