]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
sh: fix autocompletion for commands that share name with a directory
authorPiotr Pawel Stefaniak <pstef@FreeBSD.org>
Sat, 12 Mar 2022 11:08:05 +0000 (12:08 +0100)
committerPiotr Pawel Stefaniak <pstef@FreeBSD.org>
Mon, 28 Mar 2022 06:45:03 +0000 (08:45 +0200)
commit68700941c7ad58d6fa8eda82f3f370d87670fa6a
tree0ed2a2b29398772b91bf53d90340f0d01807b36e
parent7ed8e142a00d4b711dd2021b37b84a6e7f86516e
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
bin/sh/histedit.c