Anyone else seeing this in RC1?
I have $MaximumHistoryCount = 64 (the default)
If I use get-history only 32 commands are available. This is
consistent as far as I can see.
Looks like a bug to me.
Andrew Watt MVP
Anyone else seeing this in RC1?
I have $MaximumHistoryCount = 64 (the default)
If I use get-history only 32 commands are available. This is
consistent as far as I can see.
Looks like a bug to me.
Andrew Watt MVP
"Andrew Watt [MVP]" <SVGDeveloper@aol.com> wrote in message
news:52j392h8428aqjsokb6ae0e7jllnm1heck@4ax.com...
> Anyone else seeing this in RC1?
>
> I have $MaximumHistoryCount = 64 (the default)
>
> If I use get-history only 32 commands are available. This is
> consistent as far as I can see.
>
> Looks like a bug to me.
Nope that is the way it works. Take a look at the help on get-history. If
you want more history from get-history then use the count parameter like so:
Get-History -count $MaximumHistoryCount
Personally I wish Get-History displayed all history by default. I think
that would conform more to the "principle of least surprise". In that case,
you could run the output thru Select-Object -last 32 to get back to the
current behavior. Short of that change, the team could also add another
parameterset with -count replaced with -all.
--
Keith
Please bug this. I'll vote for it - I find it surprising/annoying as well.
--
Jeffrey Snover [MSFT]
Windows PowerShell Architect
Microsoft Corporation
This posting is provided "AS IS" with no warranties, no confers rights.
"Jeffrey Snover [MSFT]" <jsnover@microsoft.com> wrote in message
news:ODrv5hPkGHA.3572@TK2MSFTNGP04.phx.gbl...
> Please bug this. I'll vote for it - I find it surprising/annoying as
> well.
Done.
https://connect.microsoft.com/feedba...6418&SiteID=99
--
Keith
| Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| MaximumHistoryCount not working | Ned Hamilton | PowerShell | 2 | 23 Nov 2006 |