On Powershell 2.0 I can do: get-, powertab show the list of possible commands filtering them based on new typed characters; if I type get- then any character not resolved to an existing command powertab close the list leaving the current command.
In powershell 3.0 if I type after a character that is not resolved as command it returns just the character typed, deleting the get- (or whatever other verb)
PS C:\ps> $PowerTabLog.Error
Resolve-InternalCommandName : Impossibile convalidare l'argomento sul parametro 'CommandInfo'. L'argomento è null.
Fornire un argomento non null ed eseguire di nuovo il comando.
In C:\Users\io\Documents\WindowsPowerShell\Modules\PowerTab\TabExpansionCore.ps1:269 car:60
$InternalCommand = Resolve-InternalCommandName $CurrentContext.Comma ...
~~~~~~~~~~~~~~~~~~~~~
CategoryInfo : InvalidData: (:) [Resolve-InternalCommandName], ParameterBindingValidationException
FullyQualifiedErrorId : ParameterArgumentValidationError,Resolve-InternalCommandName
Get-Command : Termine 'get-' non riconosciuto come nome di cmdlet, funzione, programma eseguibile o file script.
Controllare l'ortografia del nome o verificare che il percorso sia incluso e corretto, quindi riprovare.
In C:\Users\io\Documents\WindowsPowerShell\Modules\PowerTab\TabExpansionUtil.ps1:130 car:34
$Command = @(Get-Command $Name)[0]
~~~~~~~~~~~~~~~~~
CategoryInfo : ObjectNotFound: (get-:String) [Get-Command], CommandNotFoundException
FullyQualifiedErrorId : CommandNotFoundException,Microsoft.PowerShell.Commands.GetCommandCommand
Get-Command : Termine 'Get-get-' non riconosciuto come nome di cmdlet, funzione, programma eseguibile o file script.
Controllare l'ortografia del nome o verificare che il percorso sia incluso e corretto, quindi riprovare.
In C:\Users\io\Documents\WindowsPowerShell\Modules\PowerTab\TabExpansionUtil.ps1:133 car:45
if (-not ($Command = try {@(Get-Command "Get-$Name")[0]} catch { ...
~~~~~~~~~~~~~~~~~~~~~~~
CategoryInfo : ObjectNotFound: (Get-get-:String) [Get-Command], CommandNotFoundException
FullyQualifiedErrorId : CommandNotFoundException,Microsoft.PowerShell.Commands.GetCommandCommand
Get-Command : Termine 'get-' non riconosciuto come nome di cmdlet, funzione, programma eseguibile o file script.
Controllare l'ortografia del nome o verificare che il percorso sia incluso e corretto, quindi riprovare.
In C:\Users\io\Documents\WindowsPowerShell\Modules\PowerTab\TabExpansionUtil.ps1:130 car:34
$Command = @(Get-Command $Name)[0]
~~~~~~~~~~~~~~~~~
CategoryInfo : ObjectNotFound: (get-:String) [Get-Command], CommandNotFoundException
FullyQualifiedErrorId : CommandNotFoundException,Microsoft.PowerShell.Commands.GetCommandCommand