Skip to main content
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link

.1 matches .1posix because a * is tacked on to the search string:

path = "../www/manpages/%s/%s/man%d/%s.%d%s*.html" % (d, lr, i, t, i, extra)

As to why the ordering is weird, it's because they use glob.glob, which has weird orderingweird ordering. One quick fix would be to sort by length, which would return shorter (and presumably more exact). In any case, a "fix" from the client side looks difficult.

.1 matches .1posix because a * is tacked on to the search string:

path = "../www/manpages/%s/%s/man%d/%s.%d%s*.html" % (d, lr, i, t, i, extra)

As to why the ordering is weird, it's because they use glob.glob, which has weird ordering. One quick fix would be to sort by length, which would return shorter (and presumably more exact). In any case, a "fix" from the client side looks difficult.

.1 matches .1posix because a * is tacked on to the search string:

path = "../www/manpages/%s/%s/man%d/%s.%d%s*.html" % (d, lr, i, t, i, extra)

As to why the ordering is weird, it's because they use glob.glob, which has weird ordering. One quick fix would be to sort by length, which would return shorter (and presumably more exact). In any case, a "fix" from the client side looks difficult.

Source Link
muru
  • 204k
  • 2
  • 41
  • 67

.1 matches .1posix because a * is tacked on to the search string:

path = "../www/manpages/%s/%s/man%d/%s.%d%s*.html" % (d, lr, i, t, i, extra)

As to why the ordering is weird, it's because they use glob.glob, which has weird ordering. One quick fix would be to sort by length, which would return shorter (and presumably more exact). In any case, a "fix" from the client side looks difficult.