You have been subscribed to a public bug: This fails when using the perl version distributed with Ubuntu 16.04.1 LTS:
myfunc() { echo OK $*; } export -f myfunc seq 3 | perl `which parallel` myfunc giving: /bin/bash: myfunc: command not found /bin/bash: myfunc: command not found /bin/bash: myfunc: command not found (parallel = GNU Parallel) This fails when using the perl version distributed with Ubuntu 16.04.1 LTS: myfunc() { echo OK $*; } export -f myfunc perl `which parallel` myfunc ::: 1 2 3 giving: OK 1 (Surprisingly it works for the first job!?!) /bin/bash: myfunc: command not found /bin/bash: myfunc: command not found It works as expected on the perl version distributed with Ubuntu 14.04.4 LTS, Debian 7.8, Redhat 9, Centos 5, MacOS X. I downloaded and compiled the pristine source for perl-5.18.4 perl-5.20.3 perl-5.22.2 perl-5.24.0 on Ubuntu 16.04.1 LTS. Then this works: myfunc() { echo OK $*; } export -f myfunc seq 3 | PERL5LIB=lib ./perl `which parallel` myfunc PERL5LIB=lib ./perl `which parallel` myfunc ::: 1 2 3 All of this leads me to believe that a bug has been introduced in the 58 patches. Failing perl version: $ perl --version This is perl 5, version 22, subversion 1 (v5.22.1) built for x86_64-linux-gnu-thread-multi (with 58 registered patches, see perl -V for more detail) ** Affects: perl (Ubuntu) Importance: Undecided Status: New -- exported bash functions cannot be executed from perl https://bugs.launchpad.net/bugs/1608268 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs