4 ms·
No, it doesn't. PowerShell has aliases like `cls` for `Clear-Host`, but no "short variants". Maybe this is a bit nitpicky, but wording is important since aliase
by moontear 7y ago
No, it doesn't. PowerShell has aliases like `cls` for `Clear-Host`, but no "short variants". Maybe this is a bit nitpicky, but wording is important since aliases should for example not be used in scripts as they may be changed, hence you should always use the terse or complete commands.
- majkinetor 7y agoYes it does. Its not only about aliases but number of other mechanisms such as shortening of parameteres to unique substring, parameter aliases, proxy functions, pipeline vars, pipeline properties, default global properties etc. All those together enable short variants. > Aliases should for example not be used in scripts as they may be changed Nonsence. Default aliases din't change at all from v2 - v5, they changed a bit by necessity with pwsh (v6), and cmdlets can and do change, and changed more then aliases (particularly with v6, especially network). Using full name doesn't guarantiee more stable script then using aliases, you need to use full qualified cmdlet name to have that which is not something anybody uses.