From owner-freebsd-hackers@freebsd.org Tue Oct 15 16:26:06 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 1CD0714D101 for ; Tue, 15 Oct 2019 16:26:06 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-qt1-x842.google.com (mail-qt1-x842.google.com [IPv6:2607:f8b0:4864:20::842]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46t1590x22z4T8f for ; Tue, 15 Oct 2019 16:26:04 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: by mail-qt1-x842.google.com with SMTP id m15so31469689qtq.2 for ; Tue, 15 Oct 2019 09:26:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=NuSXAlk5q5et9JmqFV1hyhmLU8ug7esgBV+iYJPpBZY=; b=F5WGMUc28tA1mU8hSBEu5Y7110tVbvhBNhALGix1+OicPfPxFZ3yblqUiyQvYTDdoZ lQGEiGWvfxW0akQFGBFhdLToyyVT2Syn4Su/1Gh3/d26ZTrrvSHKc2iDPooE6fZtOAXP Uxvz8tebCKBtHK0XyQ96Lly25SRTExnh8FjgtpH51ptMdXoq00Ezq+iJ8+zvq1Qiwi14 C6vE+mSkIQyLouAcSS7B4m3aYLmqlIYG1Ipku375YMLztx7StqKLbt5Y1o7YWjlbXTRm ihzaPMnVNswk7Sitv539AHlCiOOQeMEnxziK609eZFOkfxfYndC9Wtg1BQ4sWKww/8xy YjNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=NuSXAlk5q5et9JmqFV1hyhmLU8ug7esgBV+iYJPpBZY=; b=UWkFdDsRCaL9E8rzajvmjTmiJu/dV2mZIr4K89Dbqt9yu6vXBexeOrZjlmRcs7SUrk VTza2eL7mLYShKTqd/vOlMlJIy2YNqsgSzRhsdL9KrERUYXEHRi4KjQSz78SZwKNMa2y 04fZKI8ymt/2mC0cCm4SjQqX8JZ8TkBHtl/L6alRkUYdAXEqCjEo6atOo10LwPEk2gNG qhsd/5lAyVh3XGYk/znWFgkvoPhkHfShAGkRRB42n7AeT1fYvAIUhHJQEXe8LYQRmsLE emyObPRX4a8aSdMrhtPSRMeNuy4qJc7ElopaOW/qvcnU1YxK8FQG5CnIzkIZnwmPv4JI Lnng== X-Gm-Message-State: APjAAAVvJTfWtIgusmGartKSU/l7msfZlDynDGhrAwPb5673Av6f5wJ8 cOuuxLm5QGlz+ykqKfUlj0w= X-Google-Smtp-Source: APXvYqxR7o3FIXf7yhJ5Zk7DtDtxB7eXyMRLi5/2V3CqShFy0RkKznBYQQYExcBomQgbsPc2VJlJpg== X-Received: by 2002:ac8:5556:: with SMTP id o22mr18463993qtr.217.1571156763266; Tue, 15 Oct 2019 09:26:03 -0700 (PDT) Received: from raichu (toroon0560w-lp130-05-69-158-183-252.dsl.bell.ca. [69.158.183.252]) by smtp.gmail.com with ESMTPSA id 29sm10735955qkp.86.2019.10.15.09.26.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Oct 2019 09:26:02 -0700 (PDT) Sender: Mark Johnston Date: Tue, 15 Oct 2019 12:26:00 -0400 From: Mark Johnston To: Gordon Bergling Cc: freebsd-hackers@freebsd.org Subject: Re: uname -a default options Message-ID: <20191015162600.GE26396@raichu> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.12.2 (2019-09-21) X-Rspamd-Queue-Id: 46t1590x22z4T8f X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=F5WGMUc2; dmarc=none; spf=pass (mx1.freebsd.org: domain of markjdb@gmail.com designates 2607:f8b0:4864:20::842 as permitted sender) smtp.mailfrom=markjdb@gmail.com X-Spamd-Result: default: False [-2.19 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; NEURAL_HAM_MEDIUM(-1.00)[-0.998,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; DMARC_NA(0.00)[freebsd.org]; RCVD_COUNT_THREE(0.00)[3]; MIME_TRACE(0.00)[0:+]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[2.4.8.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; IP_SCORE(-0.49)[ip: (2.18), ipnet: 2607:f8b0::/32(-2.48), asn: 15169(-2.10), country: US(-0.05)]; FORGED_SENDER(0.30)[markj@freebsd.org,markjdb@gmail.com]; FREEMAIL_TO(0.00)[gmail.com]; MID_RHS_NOT_FQDN(0.50)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[markj@freebsd.org,markjdb@gmail.com]; RCVD_TLS_ALL(0.00)[] 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: Tue, 15 Oct 2019 16:26:06 -0000 On Tue, Aug 13, 2019 at 05:41:26PM +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? I'm not sure about the history which led to the current behaviour of -a, but the unfortunately reality is that changes like the one you propose will likely break programs that process uname -a output. Of course, such programs should likely be using more specialized uname options instead, but the current behaviour of -a has been in place for something like 25 years, so it's quite likely that something depends on it. In these situations I prefer to maintain backwards compatibility.