Page MenuHomeFreeBSD

Update newgrp(1) to include examples.
Needs ReviewPublic

Authored by felix.the.red_gmail.com on Feb 6 2025, 11:28 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Mar 5, 8:05 PM
Unknown Object (File)
Tue, Mar 4, 9:01 PM
Unknown Object (File)
Wed, Feb 26, 10:17 PM
Unknown Object (File)
Feb 23 2025, 2:56 AM
Unknown Object (File)
Feb 13 2025, 9:13 PM
Unknown Object (File)
Feb 12 2025, 11:57 AM
Unknown Object (File)
Feb 6 2025, 11:29 PM
Subscribers

Details

Reviewers
ziaee
carlavilla
mhorne
eadler
Group Reviewers
manpages
Summary

Add examples provided by Mark Saad.

Test Plan

PR: 167742

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 62314
Build 59198: arc lint + arc unit

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).