Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[Bug 212875] [patch] add -d (domain) flag to hostname

1 view
Skip to first unread message

bugzilla...@freebsd.org

unread,
Sep 21, 2016, 2:58:56 AM9/21/16
to freebs...@freebsd.org
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=212875

Bug ID: 212875
Summary: [patch] add -d (domain) flag to hostname
Product: Base System
Version: CURRENT
Hardware: Any
OS: Any
Status: New
Keywords: patch
Severity: Affects Only Me
Priority: ---
Component: bin
Assignee: freebs...@FreeBSD.org
Reporter: ben.r...@gmail.com

Created attachment 175028
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=175028&action=edit
patch to add -d flag to hostname

Hello,

Here is a patch to add -d flag to hostname command.
-d prints domain only.

# hostname
server.domain.com
# hostname -s
server
# hostname -d
domain.com

Thank you for merging !

Ben

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
freebs...@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs...@freebsd.org"

bugzilla...@freebsd.org

unread,
Oct 13, 2016, 2:21:03 PM10/13/16
to freebs...@freebsd.org
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=212875

Kurt Jaeger <p...@FreeBSD.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |p...@FreeBSD.org

--- Comment #1 from Kurt Jaeger <p...@FreeBSD.org> ---
testbuild is OK.

I'm wondering if the command should warn/error if one uses any combination
of flags on the command line and what should take precedence ?
0 new messages