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@FreeBSD.org
          Reporter: ben.rub...@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.
_______________________________________________
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to