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: [email protected]
Reporter: [email protected]
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.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"