Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • S shimmy
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Adélie Linux
  • shimmy
  • Merge requests
  • !1

Merged
Created Apr 24, 2022 by A. Wilcox@awilfox🦊Maintainer

Add hostname(1) implementation

  • Overview 0
  • Commits 4
  • Changes 4

This isn't exactly compatible with net-tools, but it is close.

Good:

  • All short-form parameters from hostname that deal with the actual node's name (-d, -f, -i, -s, -v) are implemented.
  • Files can be read in with -F.
  • Works on all systems I tested it on.

Bad:

  • Long-form options (--domain, --fqdn, --verbose, etc) are not supported and will cause an error.
  • The manpage could use a lot of work.
  • Lines longer than 1,024 characters in a file aren't handled the same way as net-tools, though I sincerely hope nobody is using that behaviour.
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: add-hostname