These can often be reset by the shell to read and write from different locations. They can be chained together for simple communication.
cd
command must run as an internal command so that the shell can keep
track of the value. The exit
command, to terminate
execution of the shell, must also be internal.
If a command is not an internal one, then it is expected to be run
from a program on disk. The shell will have a means of searching for
this (using the PATH
variable in Unix and DOS).
Once found, a new process will be started for this.
A process is started and eventually terminates. It may consider that
it has performed its task successfully, so its ``boolean'' value is
true. If it failed, its ``boolean'' value is false.
MSDOS uses errorlevel
for this, Unix uses
exit codes.