From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AC94CC7EE23 for ; Sat, 25 Feb 2023 19:26:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229535AbjBYT0P (ORCPT ); Sat, 25 Feb 2023 14:26:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229445AbjBYT0N (ORCPT ); Sat, 25 Feb 2023 14:26:13 -0500 Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AFDAA158BD for ; Sat, 25 Feb 2023 11:26:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=GqqRkGpOeKktvU4ro7FjB0loLnUNsJxVg32vnklDVLA=; b=RuG7YtTlsyPIgyU6JGOrUEFYiR4o45o0pWEZ7MosXfc47SDzUtCzhtkP XpKCIys4aHPqyNG/lbmmoicFymNezVh7jbGoTDuJfikrtwKF6Nk/vIebH J6R5JJ0/DlB/yWo5q4QAtLUtY1fjr9iqok3yLOPANc/QCJKt4fHV455CM k=; Authentication-Results: mail2-relais-roc.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=julia.lawall@inria.fr; dmarc=fail (p=none dis=none) d=inria.fr X-IronPort-AV: E=Sophos;i="5.97,328,1669071600"; d="scan'208";a="94345849" Received: from 231.85.89.92.rev.sfr.net (HELO hadrien) ([92.89.85.231]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Feb 2023 20:26:11 +0100 Date: Sat, 25 Feb 2023 20:26:11 +0100 (CET) From: Julia Lawall X-X-Sender: jll@hadrien To: Jarkko Sakkinen cc: Nicolas Palix , open list Subject: Re: [PATCH] scripts: coccicheck: Use /usr/bin/env In-Reply-To: <20230126215612.86436-1-jarkko@kernel.org> Message-ID: References: <20230126215612.86436-1-jarkko@kernel.org> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 26 Jan 2023, Jarkko Sakkinen wrote: > If bash is not located under /bin, coccicheck fails to run. In the real > world, this happens for instance when NixOS is used in the host. Instead, > use /usr/bin/env to locate the executable binary for bash. > > Signed-off-by: Jarkko Sakkinen Applied, thanks. julia > --- > scripts/coccicheck | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/scripts/coccicheck b/scripts/coccicheck > index 2956fce8fa4f..b4d0d6eb3e73 100755 > --- a/scripts/coccicheck > +++ b/scripts/coccicheck > @@ -1,4 +1,4 @@ > -#!/bin/bash > +#!/usr/bin/env bash > # SPDX-License-Identifier: GPL-2.0 > # Linux kernel coccicheck > # > -- > 2.38.1 > >