From owner-freebsd-standards@FreeBSD.ORG Mon Jul 27 21:40:02 2009 Return-Path: Delivered-To: freebsd-standards@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E7A101065670 for ; Mon, 27 Jul 2009 21:40:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id BBD728FC1C for ; Mon, 27 Jul 2009 21:40:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n6RLe2l5004542 for ; Mon, 27 Jul 2009 21:40:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n6RLe2gh004541; Mon, 27 Jul 2009 21:40:02 GMT (envelope-from gnats) Date: Mon, 27 Jul 2009 21:40:02 GMT Message-Id: <200907272140.n6RLe2gh004541@freefall.freebsd.org> To: freebsd-standards@FreeBSD.org From: Jilles Tjoelker Cc: Subject: Re: standards/137173: `uname -n` incorrect behavior X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Jilles Tjoelker List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Jul 2009 21:40:03 -0000 The following reply was made to PR standards/137173; it has been noted by GNATS. From: Jilles Tjoelker To: bug-followup@FreeBSD.org, akosela@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