From owner-freebsd-standards@FreeBSD.ORG Mon Jul 27 13:30: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 9364E1065675 for ; Mon, 27 Jul 2009 13:30: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 53B098FC15 for ; Mon, 27 Jul 2009 13:30: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 n6RDU2B8033492 for ; Mon, 27 Jul 2009 13:30:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n6RDU2wA033489; Mon, 27 Jul 2009 13:30:02 GMT (envelope-from gnats) Resent-Date: Mon, 27 Jul 2009 13:30:02 GMT Resent-Message-Id: <200907271330.n6RDU2wA033489@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-standards@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Andy Kosela Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 719951065674 for ; Mon, 27 Jul 2009 13:26:25 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 603478FC28 for ; Mon, 27 Jul 2009 13:26:25 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n6RDQO78044287 for ; Mon, 27 Jul 2009 13:26:24 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n6RDQOWF044267; Mon, 27 Jul 2009 13:26:24 GMT (envelope-from nobody) Message-Id: <200907271326.n6RDQOWF044267@www.freebsd.org> Date: Mon, 27 Jul 2009 13:26:24 GMT From: Andy Kosela To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: standards/137173: `uname -n` incorrect behavior X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Jul 2009 13:30:02 -0000 >Number: 137173 >Category: standards >Synopsis: `uname -n` incorrect behavior >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-standards >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Jul 27 13:30:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Andy Kosela >Release: >Organization: >Environment: FreeBSD plotinus.lan 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Sat Jun 6 15:21:16 CEST 2009 akosela@plotinus.lan:/usr/obj/usr/src/sys/GENERIC amd64 >Description: 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. On the other hand though HP-UX, AIX, Solaris, Linux seems to conform to IEEE Std 1003.1 in this aspect and print only the hostname (without the domain name). This feature of uname(1) is important for some of us who rely on `uname -n` in PS1. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: