Update shebang to use /usr/bin/env
This commit is contained in:
parent
c43764afbb
commit
6f110ee783
2 changed files with 18 additions and 2 deletions
16
UPGRADING.md
16
UPGRADING.md
|
@ -1,3 +1,19 @@
|
||||||
|
# (2023-08-21) RevBank 3.9
|
||||||
|
|
||||||
|
A tiny change that could break things: the shebang was changed from
|
||||||
|
`#!/usr/bin/perl` to the more modern `#!/usr/bin/env perl`.
|
||||||
|
|
||||||
|
In the unlikely event that your system has multiple perl executables in the
|
||||||
|
search path of `PATH`, this change could mean that revbank now uses a different
|
||||||
|
perl, in which case you may have to reinstall the required Perl libraries.
|
||||||
|
|
||||||
|
Background: NixOS doesn't follow the previously uni(x)versal convention that,
|
||||||
|
when Perl is available, an executable exists at `/usr/bin/perl`. The only
|
||||||
|
stable paths that NixOS provides for shebangs are `#!/bin/sh` or
|
||||||
|
`#!/usr/bin/env`. There were always pros and cons to switching the shebang to
|
||||||
|
`env` (e.g. for use with perlbrew), but learning about Nix has tipped the
|
||||||
|
scales for me. (The performance penalty is not relevant for RevBank.)
|
||||||
|
|
||||||
# (2023-02-12) RevBank 3.8
|
# (2023-02-12) RevBank 3.8
|
||||||
|
|
||||||
## Update your `revbank.plugins`
|
## Update your `revbank.plugins`
|
||||||
|
|
4
revbank
4
revbank
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/perl
|
#!/usr/bin/env perl
|
||||||
|
|
||||||
use v5.28;
|
use v5.28;
|
||||||
use warnings;
|
use warnings;
|
||||||
|
@ -18,7 +18,7 @@ use RevBank::Global;
|
||||||
use RevBank::Messages;
|
use RevBank::Messages;
|
||||||
use RevBank::Cart;
|
use RevBank::Cart;
|
||||||
|
|
||||||
our $VERSION = "3.8";
|
our $VERSION = "3.9";
|
||||||
our %HELP1 = (
|
our %HELP1 = (
|
||||||
"abort" => "Abort the current transaction",
|
"abort" => "Abort the current transaction",
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Reference in a new issue