- Aug
- 2,799
- 144
What used to work in v35, but does not work in v36.
Note that,
in v36,
after defining the alias,
there is an extra blank line displayed.
This is not the case in v35.
Joe
Addendum: v36 will not load the PowerShell $Profile.
As v36 PShell cannot create PowerShell functions and aliases,
the PowerShell $Profile may be loading,
but it would appear that none of the functions and aliases that I have defined in my PowerShell $Profile are being created.
Note that,
in v36,
after defining the alias,
there is an extra blank line displayed.
This is not the case in v35.
Joe
Code:
TCC 35.00.21 x64 Windows 10 [Version 10.0.19045.7058]
E:\Utils>pshell /s "New-Alias -Name test -value 'C:\cygwin64\bin\cal.exe'"
E:\Utils>pshell /s "get-content alias:test"
C:\cygwin64\bin\cal.exe
Code:
TCC 36.00.17 x64 Windows 10 [Version 10.0.19045.7058]
E:\Utils>pshell /s "New-Alias -Name test -value 'C:\cygwin64\bin\cal.exe'"
E:\Utils>pshell /s "get-content alias:test"
PSHELL: Cannot find path 'Alias:\test' because it does not exist.
Addendum: v36 will not load the PowerShell $Profile.
As v36 PShell cannot create PowerShell functions and aliases,
the PowerShell $Profile may be loading,
but it would appear that none of the functions and aliases that I have defined in my PowerShell $Profile are being created.