2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 <2018> 2019 2020 2021 2022 2023 2024 | Index | 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 <2018> 2019 2020 2021 2022 2023 2024 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: Perl scripts shebang: /usr/bin/perl vs. /usr/bin/env perl |
From: | Michael Davidsaver <[email protected]> |
To: | Torsten Bögershausen <[email protected]>, "Konrad, Martin" <[email protected]>, "J. Lewis Muir" <[email protected]>, "[email protected]" <[email protected]> |
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