Remove 'kill' alias for Stop-Process cmdlet on Unix (#10098)
This commit is contained in:
parent
540737ebe1
commit
0ae7d50d5c
@ -4616,7 +4616,9 @@ end {
|
||||
new SessionStateAliasEntry("dir", "Get-ChildItem", string.Empty, AllScope),
|
||||
new SessionStateAliasEntry("echo", "Write-Output", string.Empty, AllScope),
|
||||
new SessionStateAliasEntry("fc", "Format-Custom", string.Empty, ReadOnly),
|
||||
#if !UNIX
|
||||
new SessionStateAliasEntry("kill", "Stop-Process"),
|
||||
#endif
|
||||
new SessionStateAliasEntry("pwd", "Get-Location"),
|
||||
new SessionStateAliasEntry("type", "Get-Content"),
|
||||
// #if !CORECLR is used to disable aliases for cmdlets which are not available on OneCore or not appropriate for PSCore6 due to conflicts
|
||||
|
@ -94,7 +94,7 @@ Describe "Verify approved aliases list" -Tags "CI" {
|
||||
"Alias", "ise", "powershell_ise.exe", $($FullCLR ), "ReadOnly", "", ""
|
||||
"Alias", "iwmi", "Invoke-WMIMethod", $($FullCLR ), "ReadOnly", "", ""
|
||||
"Alias", "iwr", "Invoke-WebRequest", $($FullCLR -or $CoreWindows -or $CoreUnix), "ReadOnly", "", ""
|
||||
"Alias", "kill", "Stop-Process", $($FullCLR -or $CoreWindows -or $CoreUnix), "", "", ""
|
||||
"Alias", "kill", "Stop-Process", $($FullCLR -or $CoreWindows ), "", "", ""
|
||||
"Alias", "lp", "Out-Printer", $($FullCLR ), "ReadOnly", "", ""
|
||||
"Alias", "ls", "Get-ChildItem", $($FullCLR -or $CoreWindows ), "", "", ""
|
||||
"Alias", "man", "help", $($FullCLR -or $CoreWindows ), "", "", ""
|
||||
|
Loading…
Reference in New Issue
Block a user