[Bug 212875] [patch] add -d (domain) flag to hostname
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Wed Sep 21 06:58:45 UTC 2016
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: freebsd-bugs at FreeBSD.org
Reporter: ben.rubson at 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.
More information about the freebsd-bugs
mailing list