From owner-freebsd-standards@FreeBSD.ORG Tue Jul 28 08:40:04 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 56927106566B for ; Tue, 28 Jul 2009 08:40:04 +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 456F98FC08 for ; Tue, 28 Jul 2009 08:40:04 +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 n6S8e3t1050122 for ; Tue, 28 Jul 2009 08:40:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n6S8e33A050121; Tue, 28 Jul 2009 08:40:03 GMT (envelope-from gnats) Date: Tue, 28 Jul 2009 08:40:03 GMT Message-Id: <200907280840.n6S8e33A050121@freefall.freebsd.org> To: freebsd-standards@FreeBSD.org From: Andy Kosela 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: Andy Kosela List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Jul 2009 08:40:04 -0000 The following reply was made to PR standards/137173; it has been noted by GNATS. From: Andy Kosela To: wollman@csail.mit.edu Cc: freebsd-gnats-submit@freebsd.org Subject: Re: standards/137173: `uname -n` incorrect behavior Date: Tue, 28 Jul 2009 10:17:29 +0200 Garrett Wollman wrote: > < said: > > > Currently `uname -n` prints the name of the system (FQDN) to standard output. I believe this is incorrect behavior according to IEEE Std 1003.1. > > > -n > > Write the name of this node within an implementation-defined communications network. > > What makes you think that the behavior of "uname -n" does not match > this description? Hi Garrett, All UNIX systems I got access to prints only hostname without the domain information (same as 'hostname -s'). Is this some historical peculiarity of FreeBSD? I see it uses KERN_HOSTNAME which is indeed FQDN. On top of that common sense tells me that "node within an implementation-defined communications network" is just a node name, and not a full domain name information. What you think? --Andy