Escaping to the system
Nu 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 Nu command. To run the external
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 Nu's internal
Nu internal command:
Escape to external command:
When running an external command on Windows, nushell 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 nushell native concepts.