On 19-Apr-2011, Brian Candler <b.candler / pobox.com> wrote:

> Of course, if the question is really "why does Microsoft hang with a
> 'More?' prompt when dir is issued a second time", then this isn't really
> the right solution.

But I found that his code *does* work in 1.8.7 but not in 1.9.2, so it's not
just Microsoft's fault.  It looked to me to be a difference in character
encodings between the two versions of Ruby causing some issues with regex
matching in the preprocess instance method.