mirror of
https://github.com/nushell/nushell.git
synced 2024-11-22 16:33:37 +01:00
Add pause and cls to cmd.exe exceptions (#6371)
This commit is contained in:
parent
5337a6dffa
commit
c5ca839294
@ -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 New Issue
Block a user