Conversation
Does anyone happen to know the algorithm for history retrieval in #Windows cmd.exe?

After *nix it feels like it was designed by a madman, although I'm sure there's some logic to it that I fail to appreciate.
1
1
4

@buherator Any discovery on that? Otherwise, it looks like a perfect excuse to do a random quick reversing thing.

1
0
0
@joxean Only what I can deduce from use: instead of pushing the last command to the history stack (independently from whether a command was historic or new) Windows seems to maintain a pointer inside a list, and moves it to the retrieved command. This way when you use the up arrow after a retrieval you start from that historic position instead of the latest command.
1
0
1