mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Fix for history
This commit is contained in:
committed by
Andrew Schwartzmeyer
parent
7a77539b50
commit
aeabd5aa53
+4
-2
@@ -250,13 +250,15 @@ namespace Microsoft.Samples.PowerShell.Host
|
||||
|
||||
// If there is any input pass it in, otherwise just invoke the
|
||||
// the pipeline.
|
||||
PSInvocationSettings settings = new PSInvocationSettings();
|
||||
settings.AddToHistory = true;
|
||||
if (input != null)
|
||||
{
|
||||
this.currentPowerShell.Invoke(new object[] { input });
|
||||
this.currentPowerShell.Invoke(new object[] { input }, settings);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.currentPowerShell.Invoke();
|
||||
this.currentPowerShell.Invoke(null, settings);
|
||||
}
|
||||
}
|
||||
finally
|
||||
|
||||
Reference in New Issue
Block a user