Page MenuHomeFreeBSD

jexec man: Add examples section
ClosedPublic

Authored by dbaio on Jul 1 2023, 8:39 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 7, 9:44 PM
Unknown Object (File)
Fri, Nov 1, 5:57 AM
Unknown Object (File)
Fri, Nov 1, 4:15 AM
Unknown Object (File)
Sun, Oct 27, 7:18 AM
Unknown Object (File)
Thu, Oct 24, 7:30 AM
Unknown Object (File)
Wed, Oct 16, 7:58 AM
Unknown Object (File)
Tue, Oct 15, 11:25 AM
Unknown Object (File)
Tue, Oct 15, 11:25 AM

Details

Summary
jexec man: Add examples section

MFC after:      3 days
Test Plan
$ mandoc -T lint ./jexec.8
<null>

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

dbaio requested review of this revision.Jul 1 2023, 8:39 PM

Nits fixable on commit

usr.sbin/jexec/jexec.8
69
78
83
87
This revision is now accepted and ready to land.Jul 3 2023, 12:37 AM
danfe added inline comments.
usr.sbin/jexec/jexec.8
75

Shouldn't we expand contractions?

79

uname(8) -> .Xr uname 1

$ man 8 uname
No manual entry for uname
84

sh(1) -> .Xr sh 1

87

login(1) -> .Xr login 1

90

motd(5) -> .Xr motd 5

This revision now requires review to proceed.Jul 3 2023, 10:57 AM

Thank you both for reviewing.

usr.sbin/jexec/jexec.8
69

This is rendering correct.

87

I couldn't use this macro in the example title; it doesn't render in the same line.
But the reference is in the next paragraph.

usr.sbin/jexec/jexec.8
75

It should read "It is also possible ...", its is a possessive pronoun. :-)

87

I couldn't use this macro in the example title; it doesn't render in the same line.

Oh, so .Xr references cannot be used with .Ss? Interesting...

dbaio marked 2 inline comments as done.Jul 4 2023, 2:24 AM
dbaio added inline comments.
usr.sbin/jexec/jexec.8
87

it seems so, I couldn't find any other man page doing that.

Looks nice. I just have some minor suggestions.

usr.sbin/jexec/jexec.8
75

s/by is/by its/

80

Perhaps this could be rephrased into

The following command runs
.Ql uname -a
in a jail called
.Dq name .
Since a command is specified explicitly,
.Nm
does not spawn an interactive shell.
Instead,
.Nm
executes the specified command directly.
87

In that case I'd replace "login(1)" with "the login command" to avoid confusion.

90

A newline would be nice here.

92

Usually, .Xr should be on its own line. Perhaps it renders correctly, but it is not how Xr is usually used :)

dbaio marked an inline comment as done.
  • Improve examples

@0mp, thanks for the tips and feedback; much appreciated.

This revision is now accepted and ready to land.Oct 4 2023, 8:28 AM
This revision was automatically updated to reflect the committed changes.

Thank you everyone for reviewing this.