From owner-freebsd-hackers@freebsd.org Sat Aug 17 14:21:26 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 70A41C89F8 for ; Sat, 17 Aug 2019 14:21:26 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound3d.ore.mailhop.org (outbound3d.ore.mailhop.org [54.186.57.195]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 469j6Y4Jb6z4Pyk for ; Sat, 17 Aug 2019 14:21:25 +0000 (UTC) (envelope-from ian@freebsd.org) ARC-Seal: i=1; a=rsa-sha256; t=1566051684; cv=none; d=outbound.mailhop.org; s=arc-outbound20181012; b=q0MK6sZpBoEIZCvjbBU2lx52i3kpKG6RxV/3zAFMVe9R7/gjJwaUBGIPBe2R8cSeGrCs17Zaf8gYN +HwU+6Vlsnoes65eTR9JEDwvWCRHhhNohrfeaXf1DsRzmhEd5RDc+996p2/CHjFvjuAgM5d/Jwh/Lg CUSheMVI1UlXDR39yvr55eIMFxmcOqeF7pBFGLN0DkdiFzFFAADt+4WqBZJ6udYHxvhvptQMkEi+I+ c/0hCHRACMDNKNNURgd+81/MGtrMzS6rrqWTFwyrTFFUhE9jIuaOnYqT5kxoQ1podyFM38N9WnU1kZ XLtDIPoPyVXp0cywdluWweB8VISPG6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=arc-outbound20181012; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:to:from:subject:message-id:dkim-signature:from; bh=rgMiVK+y680YecSu4JWb2prq5vO1yLyGDpdEgrcy3Ig=; b=SyDSEnn5a0vkosHT3FcuIkCaApTOSzQHwFb9kEnEwIAr25+flmf5opkKcjDbGLpTPouBSRatrw/Fs nJcJ9cxaxXav35wHriZhSDEadKJs2wjKClvhqJkmpNzyYYV8bbKIQh3/fQ1INP8QFszQOLccC6h1qX idmCFKK+ty2XPEx9JhgQ9J3atla2VHKahBQ9cmt3z7BY26ZryKRExTroic6XB+whLqJNafCw9JPgxB wNi4wFVKUKESChfA23twrkB0C9HfYZWChQcixbY36j1w/oITY2MzRnE8Uc9Y5csN0szfSQBySqQZlO 9/O/PFT4k3huoC/E0DSfgZnjMHsFKuQ== ARC-Authentication-Results: i=1; outbound3.ore.mailhop.org; spf=softfail smtp.mailfrom=freebsd.org smtp.remote-ip=67.177.211.60; dmarc=none header.from=freebsd.org; arc=none header.oldest-pass=0; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=dkim-high; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:to:from:subject:message-id:from; bh=rgMiVK+y680YecSu4JWb2prq5vO1yLyGDpdEgrcy3Ig=; b=GGBI+Kog6LWzFZHRb9voRWse3+wp+ack82iCqZNLCZm9oc4/A26RNtQKn5ZgQyxzaE/lSY7KlmaW4 JZMZvwXJ+4rDPFr7GNxp+6tJlbZY1m/6Auh87DJeYWoKDK84vJz7W2ekgUKhiSs7pGJBseb//xZmkw yUOSjyQfPd18RQQ8wbtJAEpcHBGeDRyGHWy1+LNqEOOC2frLccBlegXcb2IBDCoyRsI9XnDfVPJiDb uJYxPgjR+P6oscZVbRsvX7n0medhRAbDVIKH9qorgP/20rCEUkbFOSMhwWdhS+5B6puPIQfiIWFl/r r3vG2bIFaZxGdmCttyD3FNds9JxOw6g== X-MHO-RoutePath: aGlwcGll X-MHO-User: 49753d81-c0fa-11e9-b67b-cdd75d6ce7a8 X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 67.177.211.60 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [67.177.211.60]) by outbound3.ore.mailhop.org (Halon) with ESMTPSA id 49753d81-c0fa-11e9-b67b-cdd75d6ce7a8; Sat, 17 Aug 2019 14:21:23 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id x7HELLAS068210; Sat, 17 Aug 2019 08:21:21 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: <7d1f88943c0b744920d7181df51b76675d145f18.camel@freebsd.org> Subject: Re: uname -a default options From: Ian Lepore To: Gordon Bergling , freebsd-hackers@freebsd.org Date: Sat, 17 Aug 2019 08:21:21 -0600 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5 FreeBSD GNOME Team Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 469j6Y4Jb6z4Pyk X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-2.98 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.98)[-0.984,0]; ASN(0.00)[asn:16509, ipnet:54.186.0.0/15, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Aug 2019 14:21:26 -0000 On Sat, 2019-08-17 at 15:08 +0200, Gordon Bergling wrote: > Hello List, > > "uname -a" is currently mapping the -a option to „-mnrsv“, which > results in something similar like > > $ uname -a > FreeBSD lion.0xfce3.net 12.0-STABLE FreeBSD > 12.0-STABLE r350835 GENERIC amd64 > > What would you think about reducing the option mapping for „-a“ to „- > vmn“ , which would result in a less repetitive version string like > the one below. > > $ uname -vmn > lion.0xfce3.net FreeBSD 12.0-STABLE r350835 > GENERIC amd64 > > Adapting this would be trivial, but before I hack something together, > I would like to get some feedback if such a change would be welcomed? > > Best regards, > > Gordon > I think there are likely very many existing scripts in the world that parse the output of uname -a and would break if the fields moved around or disappeared. -- Ian