Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753478AbdLHWVD (ORCPT ); Fri, 8 Dec 2017 17:21:03 -0500 Received: from smtprelay0016.hostedemail.com ([216.40.44.16]:54246 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753091AbdLHWVC (ORCPT ); Fri, 8 Dec 2017 17:21:02 -0500 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::,RULES_HIT:41:355:379:541:599:800:960:973:982:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1540:1593:1594:1711:1730:1747:1777:1792:2393:2553:2559:2562:2828:2902:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3868:3870:3871:3872:3873:3874:4321:5007:7514:7903:10004:10400:10848:10967:11232:11658:11914:12043:12740:12760:12895:13069:13311:13357:13439:14096:14097:14181:14659:14721:21080:21451:21611:21627:30054:30064:30090:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:4,LUA_SUMMARY:none X-HE-Tag: kick26_602c979457c17 X-Filterd-Recvd-Size: 1838 Message-ID: <1512771659.1845.40.camel@perches.com> Subject: Re: [PATCH] tools/slabinfo-gnuplot: force to use bash shell From: Joe Perches To: Andrew Morton , Sergey Senozhatsky Cc: "Liu, Changcheng" , sergey.senozhatsky@gmail.com, linux-kernel@vger.kernel.org Date: Fri, 08 Dec 2017 14:20:59 -0800 In-Reply-To: <20171208140246.bc111cc726d5f7f8ff7c2ed2@linux-foundation.org> References: <20171208093751.GA175471@sofia> <20171208103315.GF628@jagdpanzerIV> <20171208140246.bc111cc726d5f7f8ff7c2ed2@linux-foundation.org> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.26.1-1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 854 Lines: 23 On Fri, 2017-12-08 at 14:02 -0800, Andrew Morton wrote: > On Fri, 8 Dec 2017 19:33:15 +0900 Sergey Senozhatsky wrote: > > > On (12/08/17 17:37), Liu, Changcheng wrote: > > > > > > On some linux distributions, the default link of sh > > > is dash which deoesn't support split array like > > > ${var//,/ } > > > It's better to force to use bash shell directly. > > > > > > Signed-off-by: Liu Changcheng > > > > Reviewed-by: Sergey Senozhatsky > > It would be better to rewrite the script to avoid bashisms. But... > > akpm3:/usr/src/linux-4.15-rc2> grep -rl "/bin/bash" . | wc -l > 164 > > I guess we lost that fight a long time ago. 103 of those are in tools/ and I don't think those count. If you take out samples/ and Documentation/ it's down to 24.