Escaping to the system
Rsh provides a set of commands that you can use across different
OSes ("internal" commands), and having this
consistency is helpful. Sometimes, though, you want to run an
external command that has the same name as an internal Rsh
command. To run the external
ls
or
date
command, for example, you use the caret (^) command. Escaping
with the caret prefix calls the command that's in the
user's PATH (e.g. /bin/ls
instead of Rsh's
internal
ls
command).
Rsh internal command:
> ls
Escape to external command:
> ^ls
Windows note
When running an external command on Windows, rsh used to use Cmd.exe to run the command, as a number of common commands on Windows are actually shell builtins and not available as separate executables. Coming from CMD.EXE contains a list of these commands and how to map them to rsh native concepts.