Page MenuHomeFreeBSD

Update newgrp(1) to include examples.
ClosedPublic

Authored by felix.the.red_gmail.com on Feb 6 2025, 11:28 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jul 31, 6:12 AM
Unknown Object (File)
Mon, Jul 27, 8:47 AM
Unknown Object (File)
Sat, Jul 25, 10:19 PM
Unknown Object (File)
Sat, Jul 25, 10:19 PM
Unknown Object (File)
Sun, Jul 19, 9:41 PM
Unknown Object (File)
Sat, Jul 18, 6:38 AM
Unknown Object (File)
Wed, Jul 15, 6:37 AM
Unknown Object (File)
Wed, Jul 15, 6:37 AM
Subscribers

Details

Summary

Add examples provided by Mark Saad.

Test Plan

PR: 167742

Diff Detail

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

Event Timeline

maxim added inline comments.
usr.bin/newgrp/newgrp.1
72–79

You probably want to use # as a root shell prompt and $ for non-root. Another option is to remove the prompt completely.

ziaee requested changes to this revision.Feb 7 2025, 1:25 AM
ziaee added reviewers: carlavilla, mhorne, manpages, eadler.
ziaee added inline comments.
usr.bin/newgrp/newgrp.1
71–80

It would need to look something like this, but I think this probably shouldn't go here, and should instead be an example in pw(8).

72–79

Using prompts in examples is highly undesirable because of copy paste.

If using prompt, using % for user shell prompt is fine, bsd traditional, but # must be used to represent root shell prompt.

This revision now requires changes to proceed.Feb 7 2025, 1:25 AM
  • Remove shell prompts from examples in newgrp(1).
This revision was not accepted when it landed; it landed in state Needs Review.Feb 27 2026, 12:58 AM
This revision was automatically updated to reflect the committed changes.