From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bruce Richardson Subject: Re: [PATCH] Fix bash path in shebangs Date: Fri, 28 Jul 2017 10:28:00 +0100 Message-ID: <20170728092800.GA24312@bricha3-MOBL3.ger.corp.intel.com> References: <20170727204146.9574-1-asomers@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: dev@dpdk.org To: asomers@gmail.com Return-path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 08D429173 for ; Fri, 28 Jul 2017 11:28:04 +0200 (CEST) Content-Disposition: inline In-Reply-To: <20170727204146.9574-1-asomers@gmail.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Thu, Jul 27, 2017 at 02:41:46PM -0600, asomers@gmail.com wrote: > From: Alan Somers > > "/bin/bash" is a Linuxism. "/usr/bin/env bash" is portable. > > Signed-off-by: Alan Somers > --- > examples/performance-thread/l3fwd-thread/test.sh | 2 +- > usertools/dpdk-setup.sh | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/examples/performance-thread/l3fwd-thread/test.sh b/examples/performance-thread/l3fwd-thread/test.sh > index b7718b622..eb1fe2dc2 100755 > --- a/examples/performance-thread/l3fwd-thread/test.sh > +++ b/examples/performance-thread/l3fwd-thread/test.sh > @@ -1,4 +1,4 @@ > -#!/bin/bash > +#!/usr/bin/env bash > > case "$1" in > This script doesn't look to be using any bash specific features to me, so a better fix might be to change it to use /bin/sh rather than requiring bash itself. [Needs testing, to check there isn't something bash-specific hidden away, obviously] > diff --git a/usertools/dpdk-setup.sh b/usertools/dpdk-setup.sh > index c4fec5a63..ebf36f830 100755 > --- a/usertools/dpdk-setup.sh > +++ b/usertools/dpdk-setup.sh > @@ -1,4 +1,4 @@ > -#! /bin/bash > +#! /usr/bin/env bash > > # BSD LICENSE > # > -- Not sure having this linux-specific is a problem for dpdk-setup.sh, since I don't think large parts of that script work with BSD anyway, e.g. it assumes a linux hugetlbfs filesystem for hugepage setup. Not that there is any harm in making the change you suggest either. /Bruce