Sort ambiguous package names from 'pkg_add' when not in interactive mode (which already sorts); e.g. `pkg_add autoconf`.
Patch provided inline below based on OpenBSD 5.1 (i386). --- /usr/libdata/perl5/OpenBSD/AddDelete.pm +++ /usr/libdata/perl5/OpenBSD/AddDelete.pm @@ -326,7 +326,7 @@ return $h{$result}; } else { $state->errsay("Ambiguous: #1 could be #2", - $name, join(' ', keys %h)); + $name, join(' ', sort keys %h)); return undef; } }