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 3 forks source link

[mksh] examples/simple.PS1 failure on perl 5.10 - 5.14 #4

Open dolmen opened 10 years ago

dolmen commented 10 years ago

With perl 5.10 to 5.14 (perl 5.8.3, 5.8.9, 5.18.1 are ok), the mksh shell implementation fails:

/home/dolmen/Code/angel-PS1 $ mksh
/home/dolmen/Code/angel-PS1 $ eval $(perl -Ilib bin/angel-PS1 -c examples/simple.PS1 )                                     
Loading examples/simple.PS1...
angel installed.
angel PS1 eval: Not a CODE reference at lib/AngelPS1/Compiler.pm line 27.
[angel sick!!] /home/dolmen/Code/angel-PS1$ 

The test t/70-examples.t reproduces the issue. Travis-CI shows it.

This looks like a dirty perl bug fixed for 5.16.