From c5ca839294e3b69a49ab1ae6aba4603fcb323ad3 Mon Sep 17 00:00:00 2001 From: Reilly Wood <26268125+rgwood@users.noreply.github.com> Date: Sun, 21 Aug 2022 07:21:27 -0700 Subject: [PATCH] Add pause and cls to cmd.exe exceptions (#6371) --- crates/nu-command/src/system/run_external.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/nu-command/src/system/run_external.rs b/crates/nu-command/src/system/run_external.rs index dcdf0f04e..07a9e941c 100644 --- a/crates/nu-command/src/system/run_external.rs +++ b/crates/nu-command/src/system/run_external.rs @@ -144,8 +144,9 @@ impl ExternalCommand { // This has the full list of cmd.exe "internal" commands: https://ss64.com/nt/syntax-internal.html // I (Reilly) went through the full list and whittled it down to ones that are potentially useful: - const CMD_INTERNAL_COMMANDS: [&str; 8] = [ - "ASSOC", "DIR", "ECHO", "FTYPE", "MKLINK", "START", "VER", "VOL", + const CMD_INTERNAL_COMMANDS: [&str; 10] = [ + "ASSOC", "CLS", "DIR", "ECHO", "FTYPE", "MKLINK", "PAUSE", "START", "VER", + "VOL", ]; let command_name_upper = self.name.item.to_uppercase(); let looks_like_cmd_internal = CMD_INTERNAL_COMMANDS