Repository navigation
hostname: print (none) when --domain has no DNS domain - #15407
Franklin-Qi wants to merge 1 commit into
Conversation
4497b2d to
d0f700b
Compare
sylvestre
left a comment
There was a problem hiding this comment.
sorry for the slow reaction!
Match net-tools hostname -d: derive the DNS domain from the host name and print nothing when there is no '.'. Factor helpers and add unit tests that always run.
d0f700b to
14f7f62
Compare
Merging this PR will degrade performance by 13.42%2 warnings
Warning Please fix the performance issues or acknowledge them on CodSpeed. Performance Changes
Tip Investigate this regression by commenting Comparing Footnotes
|
When the host name has no
., GNUhostname --domainprints(none). Match that instead of writing an empty line.Closes: #14962