HomeFreeBSD

sh: improve command completion

Description

sh: improve command completion

When multiple matches are found, we keep the provided string on the
input line and print unique matches as suggestions.

But the multiple matches might be the same command found in different
directories, so we should deduplicate the matches first and then decide
whether to autocomplete the command or not, based on the number of
unique matches.

Details

Provenance
pstefAuthored on Sep 18 2021, 11:26 AM
Parents
rGe19d93b19dce: sctp: fix FCFS stream scheduler
Branches
Unknown
Tags
Unknown