HomeFreeBSD

sh: fix autocompletion for commands that share name with a directory

Description

sh: fix autocompletion for commands that share name with a directory

Provide libedit a special function making it always add a space after
the autocompleted command. The default one adds a slash if the word is
also a name of a directory in the current working directory, but this is
wrong for commands.

Reviewed by: bapt, jilles
Differential Revision: https://reviews.freebsd.org/D34544

Details

Provenance
pstefAuthored on Mar 12 2022, 11:08 AM
Reviewer
bapt
Differential Revision
D34544: sh: fix autocompletion for commands that share name with a directory
Parents
rG7ed8e142a00d: MFV 45916e7c91ce: libbsdxml (expat) 2.4.7
Branches
Unknown
Tags
Unknown