Hi Lewis,
>> rather than the usual "#!/usr/bin/perl" or "#!/usr/bin/env perl"
>
> I would much prefer the former over the latter, but it seems the latter
> is what has been chosen! This was discussed on Tech-Talk in
>
> https://epics.anl.gov/tech-talk/2013/msg00098.php
Thanks for pointing us to this thread. I would also prefer the former
for better robustness.
BTW: The Debian Policy Manual also prefers the former [1]. Plus, it says
the script name should not include the .pl extension if it gets
installed into a directory in the system PATH.
It's difficult to meet the sometimes contradictory requirements of all
supported platforms at the same time (Windows needs ".pl" extension
which is in conflict with the Debian Policy Manual). I world consider
some of this customization work the package maintainer's responsibility
(they decide into which directory a file gets installed, they can decide
to remove the file name extension etc).
For now I'm happy that we got rid of the
eval 'exec perl -S $0 ${1+"$@"}' # -*- Mode: perl -*-
if $running_under_some_shell;
craziness and that all Perl files start with some shebang line. That's
certainly a step into the right direction - for all platforms/users :-)
-Martin
[1] https://www.debian.org/doc/debian-policy/ch-files.html#scripts
--
Martin Konrad
High Performance Controls Team Leader
Facility for Rare Isotope Beams
Michigan State University
640 South Shaw Lane
East Lansing, MI 48824-1321, USA
Tel. 517-908-7253
Email: [email protected]
- Replies:
- Re: Perl scripts shebang: /usr/bin/perl vs. /usr/bin/env perl Torsten Bögershausen
- Navigate by Date:
- Prev:
Perl scripts shebang: /usr/bin/perl vs. /usr/bin/env perl J. Lewis Muir
- Next:
Fwd: ATTN: CloudBees dev@CLOUD Sunset 12/15/18 Ralph Lange
- Index:
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
<2018>
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: Perl scripts shebang: /usr/bin/perl vs. /usr/bin/env perl Benjamin Franksen
- Next:
Re: Perl scripts shebang: /usr/bin/perl vs. /usr/bin/env perl Torsten Bögershausen
- Index:
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
<2018>
2019
2020
2021
2022
2023
2024
|