[Koha-bugs] [Bug 32922] New: Remove space in shebang

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Feb 9 08:51:12 CET 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32922

            Bug ID: 32922
           Summary: Remove space in shebang
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: Architecture, internals, and plumbing
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: magnus at libriotech.no
        QA Contact: testopia at bugs.koha-community.org

Some of our scripts have a space in the shebang: 

$ grep -rn --include=*.pl '#! /usr/' *
admin/library_groups.pl:1:#! /usr/bin/perl
admin/credit_types.pl:1:#! /usr/bin/perl
admin/debit_types.pl:1:#! /usr/bin/perl
admin/curbside_pickup.pl:1:#! /usr/bin/perl
admin/desks.pl:1:#! /usr/bin/perl
admin/cities.pl:1:#! /usr/bin/perl
admin/classsources.pl:1:#! /usr/bin/perl
admin/matching-rules.pl:1:#! /usr/bin/perl
admin/background_jobs.pl:1:#! /usr/bin/perl
admin/patron-attr-types.pl:1:#! /usr/bin/perl
circ/curbside_pickups.pl:1:#! /usr/bin/perl
erm/erm.pl:1:#! /usr/bin/perl
misc/cronjobs/delete_items.pl:1:#! /usr/bin/perl
misc/maintenance/check_syspref_cache.pl:1:#! /usr/bin/perl
misc/maintenance/compare_es_to_db.pl:1:#! /usr/bin/perl
misc/add_statistics_borrowers_categorycode.pl:1:#! /usr/bin/perl

It looks like this is not illegal (see e.g.
https://unix.stackexchange.com/questions/276751/is-space-allowed-between-and-bin-bash-in-shebang)
but it has been argued that we should be consistent (bug 26658) so we might
want to fix this. Unless there is some reason for it that I am not aware of?

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list