Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Jan 2021 22:21:50 GMT
From:      Daniel Ebdrup Jensen <debdrup@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: bce5d6aa2485 - main - service.8: Use entire section of literally displayed text
Message-ID:  <202101162221.10GMLorL013697@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by debdrup (doc committer):

URL: https://cgit.FreeBSD.org/src/commit/?id=bce5d6aa2485925c37240289a5479812a5bb46ff

commit bce5d6aa2485925c37240289a5479812a5bb46ff
Author:     Daniel Ebdrup Jensen <debdrup@FreeBSD.org>
AuthorDate: 2021-01-16 21:19:20 +0000
Commit:     Daniel Ebdrup Jensen <debdrup@FreeBSD.org>
CommitDate: 2021-01-16 22:21:05 +0000

    service.8: Use entire section of literally displayed text
    
    .Dl indents literal display text for one line, but .Bd can do it for a
    whole subsection.
    
    Pointy hat to:  debdrup
    Reported by:    0mp
    Reviewed by:    0mp
    Differential Revision:  https://reviews.freebsd.org/D28198
---
 usr.sbin/service/service.8 | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/usr.sbin/service/service.8 b/usr.sbin/service/service.8
index a804ec390b6b..329bcb823f1d 100644
--- a/usr.sbin/service/service.8
+++ b/usr.sbin/service/service.8
@@ -132,9 +132,11 @@ service -rv
 The following programmable completion entry can be used in
 .Xr csh 1
 for the names and common commands of the rc.d scripts:
-.Dl "complete service 'c/-/(e l r v)/' 'p/1/`service -l`/' \e"
-.Dl "	'n/*/(start stop reload restart \e"
-.Dl "	status rcvar onestart onestop)/'"
+.Bd -literal -offset indent
+complete service 'c/-/(e l r v)/' 'p/1/`service -l`/' \e
+		 'n/*/(start stop reload restart \e
+		 status rcvar onestart onestop)/'
+.Ed
 .Pp
 The following programmable completion entry can be use in
 .Xr bash 1



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202101162221.10GMLorL013697>