standards/137173: `uname -n` incorrect behavior
Jilles Tjoelker
jilles at stack.nl
Mon Jul 27 21:40:03 UTC 2009
The following reply was made to PR standards/137173; it has been noted by GNATS.
From: Jilles Tjoelker <jilles at stack.nl>
To: bug-followup at FreeBSD.org, akosela at andykosela.com
Cc:
Subject: Re: standards/137173: `uname -n` incorrect behavior
Date: Mon, 27 Jul 2009 23:31:56 +0200
I understand that `uname -n`'s behaviour may be inconvenient to you, but
I do not see why it is not compliant. An FQDN seems a valid "name of
this node within an implementation-defined communications network".
You can use shell-specific prompt expansions that generate the hostname
without domain, or myhost=`uname -n`; myhost=${myhost%%.*}.
--
Jilles Tjoelker
More information about the freebsd-standards
mailing list