Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
Edit3
Workaround:
myfunc() { echo OK; } export -f myfunc perl -e open\(\$fh,\"\|-\",@ARGV\)\;close\$fh\; /bin/bash -c myfunc\ a
My Redhat 9, OpenBSD 4.9, FreeBSD 10, Macos X, LinuxMint 17.3, and Ubuntu 14.04.4 all print OK when running this:
Ubuntu 16.04 and one working system:
WorkingOther working system:
But this shows only the definition on the working systemsystems:
My Redhat 9, Macos X, and Ubuntu 14.04.4 all print OK when running this:
Ubuntu 16.04:
Working system:
But this shows only the definition on the working system:
Other working system:
But this shows only the definition on the working systems: