dolmen / angel-PS1

Your fancy shell prompt fed by your guardian angel
https://twitter.com/nglPS1
GNU Affero General Public License v3.0
61 stars 4 forks source link

Not working under perl 5.26.0 or newer. #23

Closed gugod closed 6 years ago

gugod commented 6 years ago

When running the fatpacked version of angel-PS1, it dies with the following error -- if the invoking perl is newer than 5.26.0

% eval `./angel-PS1`
angel-PS1: Unimplemented: POSIX::tmpnam(): use File::Temp instead at /Users/st21277/bin/angel-PS1 line 2856.

Some additional info:

% which perl
/Users/gugod/perl5/perlbrew/perls/perl-5.26.1/bin/perl
% echo $SHELL
/bin/zsh

The subroutine POSIX::tmpnam() was simply removed. See: [https://perldoc.perl.org/perl5260delta.html#POSIX%3a%3atmpnam()-has-been-removed](https://perldoc.perl.org/perl5260delta.html#POSIX%3a%3atmpnam()-has-been-removed)

dolmen commented 6 years ago

Fixed by bde8772787528d691906957186bb5c5d071a2632 in devel branch.

dolmen commented 6 years ago

Fix released with v0.97.