If the sort order of the wordlist is changed (as #1040126 suggests), then that
would resolve this bug.

There would still be a question of whether the look tool ought to require the
wordlist to be sorted.  Other implementations of look(1) do (in absence of
explicit filename), so my feeling is that providers of /usr/share/dict/words
should ensure that the file is sorted with -d -f.  That being the case, my
feeling is that look(1) should indeed make use of that sort order: i.e. I feel
that the benefit of the reduced number of reads should outweigh the chance
of a misconfigured system (though see next para).

However, there is a question of how bsdextrautils should allow for the fact
that the existing version of scowl does supply an inappropriately ordered
wordlist: perhaps bsdextrautils should Conflict with existing versions, or
perhaps it should for now switch to not requiring sortedness, and later go back
to requiring orderedness and adding a Conflicts on existing scowl versions.

pjrm.

Reply via email to