Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp4491468ybp; Mon, 7 Oct 2019 09:13:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqwVb6FckMLKIQnwgdDmvhmuaWSx+Ab4KK3JFFwgWsN9CVdAhLgdgmDWkDb/pWTwFqlKAlAP X-Received: by 2002:a50:c3c7:: with SMTP id i7mr29790024edf.138.1570464785300; Mon, 07 Oct 2019 09:13:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570464785; cv=none; d=google.com; s=arc-20160816; b=nntJk983AbU0Dmn31/GwC3EfkHh739tQO9JDrVIIF0A+I2uyNB6Eu8N17ReCtVId8g w8aARodwBWrKlZMiTIdwjJ40PSrSmsQOKsbyDdGUD0oPxPM5ZxCTNpRIdIu9BBtt5N5l vPI1UfBg9ax8vgguN3BCGm+6Uke4++/Zy/CEBAXFyr41HmQ667GqLwyKHznVA8DiFvH+ g7sQ6wDKFcyY82skQOUegyjNPvh6hJ83N0/7vo87M/1pPw6C67i0CvXLNyOBSOdMnH28 nvhGiW+QYuH3IfCi1BKS3zcGICEc55BPZwBfu7k5DvqA463apueUkKZnbgwakfa05J1E E4GQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature:dkim-filter; bh=NPa8YpRQHzD38z1zgTrtNvaEwRdTmAWhu5DjV8yIWJA=; b=LX/jNe8GuO4zAomq9IY2Pzxd+zLij+HIO5GBmw83as4UIha0wOUjAptQZgViVS20Li XKhkMnbSMJPmZg/sbBs4CLwPu79zKrzJzSGex/BVKO9lON+xBiIDvLhPMpo220hwye3h qQSIX5rD1zv/uwA3jChKfwTphUqoeR4fWH5y1YbPaC9+T4KH398JmmNfAHX35zVv3QxT 9jiC3HEwrFVmBp5Jm9J7geLeHUsB3ztob5z0FWMq/Z0+rRjdaIZSALlEHpjYkz1e4W6y xYTKCOJ1OEDCT9UetZrx672CJ4Eeid65lvM6t83ZyZY/yskS9IBM2vapKxLkJpcAoN9k Yjrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=uE3pcn6O; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f2si7593939ejq.395.2019.10.07.09.12.39; Mon, 07 Oct 2019 09:13:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=uE3pcn6O; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728081AbfJGQMf (ORCPT + 99 others); Mon, 7 Oct 2019 12:12:35 -0400 Received: from conssluserg-06.nifty.com ([210.131.2.91]:65271 "EHLO conssluserg-06.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727711AbfJGQMf (ORCPT ); Mon, 7 Oct 2019 12:12:35 -0400 Received: from mail-vk1-f182.google.com (mail-vk1-f182.google.com [209.85.221.182]) (authenticated) by conssluserg-06.nifty.com with ESMTP id x97GCH8x026939; Tue, 8 Oct 2019 01:12:17 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-06.nifty.com x97GCH8x026939 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1570464738; bh=NPa8YpRQHzD38z1zgTrtNvaEwRdTmAWhu5DjV8yIWJA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=uE3pcn6OyjahUmYjOcGsgJs2vr47HmpyZKQVcOJ15qr2Nr3UO7DM4np2skn86bjJx 3XagAJt7WUMLTR2IsraMM4NscvJk4LxmN2HOg7ruxmPtk0NJXpekwZdNwnkTSzSc5k Uv2CQz2mtNdR2m0zmuBwa8TaTEUlNAyOmvZza+/a4BjLd99C6lSqeY0hCfput55h/V 7v8f0omrhZlw27TW2WMTon3ONd9dUpgKqATmyaDF8ArZPfI8WopwYPNrSvxfYSsLc9 8xZ43CRTDtegXIULL0LvNzx/Hk4fBBArZhYz57f4Tr3YoIQycTpPW8eKIN58zsYdmc doLxj8qu/elkw== X-Nifty-SrcIP: [209.85.221.182] Received: by mail-vk1-f182.google.com with SMTP id f1so3085831vkh.9; Mon, 07 Oct 2019 09:12:17 -0700 (PDT) X-Gm-Message-State: APjAAAVA2nn/0VN5pGp+yPQ+Hxm5jC0BPuhp/nH/f7/ej+cJmFlNnswy 9epRHrDvSUkHB0S/yh/gPDbkzXpOvCXwm1WLkqY= X-Received: by 2002:a1f:9344:: with SMTP id v65mr10019860vkd.96.1570464736366; Mon, 07 Oct 2019 09:12:16 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Masahiro Yamada Date: Tue, 8 Oct 2019 01:11:39 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] scripts: setlocalversion: fix a bashism To: Randy Dunlap Cc: linux-kbuild , Mike Crowe , LKML , Sam Ravnborg Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Oct 6, 2019 at 12:02 AM Randy Dunlap wrote: > > From: Randy Dunlap > > Fix bashism reported by checkbashisms by using only one '=': > > possible bashism in scripts/setlocalversion line 96 (should be 'b = a'): > if [ "`hg log -r . --template '{latesttagdistance}'`" == "1" ]; then > > Fixes: 38b3439d84f4 ("setlocalversion: update mercurial tag parsing") > Signed-off-by: Randy Dunlap > Cc: Mike Crowe Applied to linux-kbuild. Thanks. > --- > Does anyone still use hg for kernel development? I have also been wondering in which situation this code is used... > > scripts/setlocalversion | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > --- lnx-54-rc1.orig/scripts/setlocalversion > +++ lnx-54-rc1/scripts/setlocalversion > @@ -93,7 +93,7 @@ scm_version() > # Check for mercurial and a mercurial repo. > if test -d .hg && hgid=`hg id 2>/dev/null`; then > # Do we have an tagged version? If so, latesttagdistance == 1 > - if [ "`hg log -r . --template '{latesttagdistance}'`" == "1" ]; then > + if [ "`hg log -r . --template '{latesttagdistance}'`" = "1" ]; then > id=`hg log -r . --template '{latesttag}'` > printf '%s%s' -hg "$id" > else > -- Best Regards Masahiro Yamada