Argonne National Laboratory

Experimental Physics and
Industrial Control System

2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020  2021  Index 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020  2021 
<== Date ==> <== Thread ==>

Subject: Re: Perl scripts shebang: /usr/bin/perl vs. /usr/bin/env perl
From: Michael Davidsaver <mdavidsaver@gmail.com>
To: Torsten Bögershausen <torsten.bogershausen@esss.se>, "Konrad, Martin" <konrad@frib.msu.edu>, "J. Lewis Muir" <jlmuir@imca-cat.org>, "core-talk@aps.anl.gov" <core-talk@aps.anl.gov>
Date: Fri, 14 Sep 2018 09:32:30 -0700
On 09/14/2018 04:54 AM, Torsten Bögershausen wrote:
> The "[[" and "]]" are "bash-only".
> The easiest fix would be to replace "[[" with "[" and "]]" with "]",

FYI this comes up fairly often in the Debian world where bash isn't the default shell.

https://wiki.ubuntu.com/DashAsBinSh#I_am_a_developer._How_can_I_avoid_this_problem_in_future.3F

There is even a script to check your scripts...

http://manpages.ubuntu.com/manpages/bionic/man1/checkbashisms.1.html

https://salsa.debian.org/debian/devscripts/blob/master/scripts/checkbashisms.pl

References:
Re: Perl scripts shebang: /usr/bin/perl vs. /usr/bin/env perl Konrad, Martin
Re: Perl scripts shebang: /usr/bin/perl vs. /usr/bin/env perl Torsten Bögershausen

Navigate by Date:
Prev: Build failed in Jenkins: epics-base-3.14-win64 #269 APS Jenkins
Next: Re: Fwd: ATTN: CloudBees dev@CLOUD Sunset 12/15/18 Andrew Johnson
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020  2021 
Navigate by Thread:
Prev: Re: Perl scripts shebang: /usr/bin/perl vs. /usr/bin/env perl Torsten Bögershausen
Next: Re: Perl scripts shebang: /usr/bin/perl vs. /usr/bin/env perl Konrad, Martin
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020  2021 
ANJ, 14 Sep 2018 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·