How to import the alias "ral" of Remove-Alias? #25887
Unanswered
KalleOlaviNiemitalo
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In the binary module
Microsoft.PowerShell.Commands.Utility, the definition of theRemove-Aliascmdlet includes the aliasral:PowerShell/src/Microsoft.PowerShell.Commands.Utility/commands/utility/RemoveAliasCommand.cs
Lines 12 to 14 in 411d5fe
The manifest module
Microsoft.PowerShell.UtilityhasMicrosoft.PowerShell.Commands.Utilityas a nested module, but it does not export the aliasral:PowerShell/src/Modules/Unix/Microsoft.PowerShell.Utility/Microsoft.PowerShell.Utility.psd1
Lines 32 to 33 in 411d5fe
PowerShell/src/Modules/Windows/Microsoft.PowerShell.Utility/Microsoft.PowerShell.Utility.psd1
Lines 30 to 31 in 411d5fe
Is the alias intended only for internal use within
Microsoft.PowerShell.Utility, or how is it intended to be used? AFAICT, the-Aliasparameter ofImport-Modulecan only select from among aliases that are already exported.The cmdlet and the alias were added in #5143.
Beta Was this translation helpful? Give feedback.
All reactions