Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3725241pxv; Tue, 13 Jul 2021 02:12:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzo1ik2p0RkCZSypXBTJMFWo7+YCz496QnHQ0rVQdI7f/VvUdbRpSzUXXE03Iiuz+mMxBvD X-Received: by 2002:a5e:8509:: with SMTP id i9mr2447729ioj.15.1626167524746; Tue, 13 Jul 2021 02:12:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626167524; cv=none; d=google.com; s=arc-20160816; b=njrGKhq3JJN19GtBQtIcmZE2oJE11saBjE1C4a/zmNJbniLh/caJRNuk95Q8+8+cFQ sh12PGPFMBNHPzmDDaZrcB4VpniUvr9Zq6YUB7TUKcmzX1qBWZRoIBSRQ4J0j7ZHdqT2 dQJW4U+jh3anscy/SYXpA9VV5mdZXng/lvzco1u/96Q56fHWV2b6r2AMHP78Lg5miYB/ GBjZzocZ7oAoYHDO1j8qjmbJY3DyFwRGD+ZHZDxjA2oCk3HQjyhghvwy4EU7eJAKC9cp XxuAFoSOuESqIZmtDWrJtK5Op6754i8Ecj2XMhN4XBn6yy4az+BewHEafKlPMz9uTseh G5ZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:in-reply-to:subject :cc:to:from:user-agent:references:dkim-signature; bh=sj+8AfqXxmO5yIytfx3JedpkU6nycxD2GiwxOs6smQQ=; b=MXDEU7uQz7TsM6pThW4cdp+2CnpHNXUsrKpKtLDl2HDeP428cUsHMmoT4PTINTSGBX r74qskqew7J3C4Cvzmts8iEgQcLqTs37Lv96tD2ZgWu9IpvkYQBlZ0eg+oQ8zk28S8TI 3+xDlNjS4qbEFS7EvG3ZXE5o/nY2LsCJ3uJ8M1v+XbWS2mArxYCh3xFiI7BxDJrpBi30 Gar+RosmyFzf+ho+NIPeindFsL78uxoQKDaH7C0WT6BV9sLuqhTwLTk5rCvsHuHT0UH8 P1yrJpJavlYEfBHOhXLM2STRu/m9TP8AR0KP3ZV8uYrXt5IejdD63p9EWM/sBnkRZy4R Am9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ungleich.ch header.s=mail header.b="NE+4V1o/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ungleich.ch Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 198si19908711iou.66.2021.07.13.02.11.52; Tue, 13 Jul 2021 02:12:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ungleich.ch header.s=mail header.b="NE+4V1o/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ungleich.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234855AbhGMJNm (ORCPT + 99 others); Tue, 13 Jul 2021 05:13:42 -0400 Received: from mx.ungleich.ch ([185.203.112.16]:46610 "EHLO smtp.ungleich.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234702AbhGMJNl (ORCPT ); Tue, 13 Jul 2021 05:13:41 -0400 Received: from nb3.localdomain (localhost [IPv6:::1]) by smtp.ungleich.ch (Postfix) with ESMTP id 7B4561FE49; Tue, 13 Jul 2021 11:10:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ungleich.ch; s=mail; t=1626167446; bh=sj+8AfqXxmO5yIytfx3JedpkU6nycxD2GiwxOs6smQQ=; h=References:From:To:Cc:Subject:In-reply-to:Date:From; b=NE+4V1o/Gy3GeTRvM2MMuUpHrFU6+xcmUN/CW8oX4wFKc2tbR68EpHgD4aSbop5gl ukdmVxN2OVhUKARmE9dVfyn1mcqiuBSAg2ZBeqQ0fxLfvfWmGY/VwqiOt0Hk/UOVXc MdhtnhlA18X4QszY+YFJl/yPWF9sy1Xm+IIoaA47+STk/3byTv8xnE8IfCeBkPLY+4 iH5Kbo8H5NC1wwUYvG8i6nzUYDUb7bzLN2QKq3RIM/yyfupTB9P7SfQ+NbMZUt+Wod MGnPr/nVQp8kW/x3g5SmtVAXl37ZRytefIVKOXr0NE6e+vQc/6L9FTlnKn1KYMye20 Ne/ixfweuzNqw== Received: by nb3.localdomain (Postfix, from userid 1000) id 98E6014C0431; Tue, 13 Jul 2021 11:11:33 +0200 (CEST) References: <87tukzgrkg.fsf@ungleich.ch> User-agent: mu4e 1.4.15; emacs 27.2 From: Nico Schottelius To: Mikulas Patocka Cc: Nico Schottelius , Greg Kroah-Hartman , Masahiro Yamada , linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] scripts/setlocalversion: fix a bug when LOCALVERSION is empty In-reply-to: Date: Tue, 13 Jul 2021 11:11:33 +0200 Message-ID: <87r1g2h92y.fsf@ungleich.ch> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Mikulas Patocka writes: > I set LOCALVERSION to an empty string (with "export LOCALVERSION="). This > prevented the kernel from adding a "+" sign to the kernel version. Since > the commit 042da426f8eb, it no longer works and the kernel adds a "+" sign > if LOCALVERSION is set and empty. > > If you don't like "if [ "${LOCALVERSION+set}" != "set" ]", then please > provide some other way how to test if the variable is set. I fail to see the problem you are solving, as that case works exactly like I wrote in my last mail: [11:09:03] nb3:~$ export LOCALVERSION=; [ -z "${LOCALVERSION}" ] && echo unset unset [11:09:27] nb3:~$ echo $BASH_VERSION 5.1.8(1)-release Did you try that in your environment? -- Sustainable and modern Infrastructures by ungleich.ch