service(8) has an example for bash completion, however bash is third party and in /usr/share/examples/csh/dot.cshrc is a working example for csh. Extend the service(8) manpage with the completion ripped from dot.cshrc How-To-Repeat: avoid bash and use csh as shell ;)
I'll take this.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=c6a112cf84d2bf55101c0fb61c4fd1e3cf5d3cc8 commit c6a112cf84d2bf55101c0fb61c4fd1e3cf5d3cc8 Author: Daniel Ebdrup Jensen <debdrup@FreeBSD.org> AuthorDate: 2021-01-16 20:55:20 +0000 Commit: Daniel Ebdrup Jensen <debdrup@FreeBSD.org> CommitDate: 2021-01-16 21:05:29 +0000 service.8: Provide example for adding completions to (t)csh service(8) has an example for bash completion, however bash is third party and in /usr/share/examples/csh/dot.cshrc is a working example for csh. Since I use (t)csh, I've tested it, and it works for me. PR: 179497 Submitted by: ohauer@ Reviewed by: kp (tentatively) Differential Revision: https://reviews.freebsd.org/D28197 usr.sbin/service/service.8 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
This has been fixed (although I need to fix my use of out-dated macros, but I won't spam the bug tracker with that). Thank you, Olli. :)