Bug#824511: Perl-5.22.2 does not inherit shell enviorment
Christoph Junghans
junghans at votca.org
Mon May 16 22:07:42 UTC 2016
Package: perl
Version: 5.22.2-1
The behavior when calling an exported shell function from whitin perl
has changed in version 5.22.2
$ bash
$ fct() { echo "Hello from within function";}
$ export -f fct
$ perl -e '$x=`bash -c "fct"`; print $x'
bash: fct: command not found
In contrast in version 5.20.2-3
$ bash
$ fct() { echo "Hello from within function";}
$ export -f fct
$ perl -e '$x=`bash -c "fct"`; print $x'
Hello from within function
On Fedora 23 (perl-5.22.1) and Gentoo (perl-5.22.2) everything works
as expected.
This was found using votca-csg-1.3, upstream bug:
https://github.com/votca/csg/issues/179
--
Christoph Junghans
Web: http://www.compphys.de
More information about the Perl-maintainers
mailing list