mirror of
https://github.com/nushell/nushell
synced 2024-12-30 15:03:25 +00:00
Add pause and cls to cmd.exe exceptions (#6371)
This commit is contained in:
parent
5337a6dffa
commit
c5ca839294
1 changed files with 3 additions and 2 deletions
|
@ -144,8 +144,9 @@ impl ExternalCommand {
|
||||||
|
|
||||||
// This has the full list of cmd.exe "internal" commands: https://ss64.com/nt/syntax-internal.html
|
// 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:
|
// I (Reilly) went through the full list and whittled it down to ones that are potentially useful:
|
||||||
const CMD_INTERNAL_COMMANDS: [&str; 8] = [
|
const CMD_INTERNAL_COMMANDS: [&str; 10] = [
|
||||||
"ASSOC", "DIR", "ECHO", "FTYPE", "MKLINK", "START", "VER", "VOL",
|
"ASSOC", "CLS", "DIR", "ECHO", "FTYPE", "MKLINK", "PAUSE", "START", "VER",
|
||||||
|
"VOL",
|
||||||
];
|
];
|
||||||
let command_name_upper = self.name.item.to_uppercase();
|
let command_name_upper = self.name.item.to_uppercase();
|
||||||
let looks_like_cmd_internal = CMD_INTERNAL_COMMANDS
|
let looks_like_cmd_internal = CMD_INTERNAL_COMMANDS
|
||||||
|
|
Loading…
Reference in a new issue