diff --git a/book/coming_from_cmd.md b/book/coming_from_cmd.md index c6814d1a2dc..fce695a21ef 100644 --- a/book/coming_from_cmd.md +++ b/book/coming_from_cmd.md @@ -57,4 +57,14 @@ This table was last updated for Nu 0.67.0. | `VERIFY` | | Verify that file writes happen | | `VOL` | | Show drive information | -Before Nu version 0.67, Nu [used to](https://www.nushell.sh/blog/2022-08-16-nushell-0_67.html#windows-cmd-exe-changes-rgwood) use CMD.EXE to launch external commands, which meant that the above builtins could be run as an `^external` command. As of version 0.67, however, Nu no longer uses CMD.EXE to launch externals, meaning the above builtins cannot be run from within Nu, except for `ASSOC`, `CLS`, `ECHO`, `FTYPE`, `MKLINK`, `PAUSE`, `START`, `VER`, and `VOL`, which are explicitly allowed to be interpreted by CMD if no executable by that name exists. +## Forwarded CMD.EXE commands + +Nu accepts and runs *some* of CMD.EXE's internal commands through `cmd.exe`. + +The internal commands are: `ASSOC`, `CLS`, `ECHO`, `FTYPE`, `MKLINK`, `PAUSE`, `START`, `VER`, `VOL` + +These internal commands take precedence over external commands. + +For example, with a `ver.bat` file in the current working directory, executing `^ver` executes CMD.EXE's internal `VER` command, *NOT* the `ver.bat` file. + +Executing `./ver` or `ver.bat` *will* execute the local bat file though.