Skip to main content
Tweeted twitter.com/StackUnix/status/938002176454156289
edited tags
Link
Gilles 'SO- stop being evil'
  • 866.5k
  • 205
  • 1.8k
  • 2.3k
added 155 characters in body
Source Link
Ole Tange
  • 37.6k
  • 34
  • 120
  • 230

Edit3

Workaround:

myfunc() { echo OK; } export -f myfunc perl -e open\(\$fh,\"\|-\",@ARGV\)\;close\$fh\; /bin/bash -c myfunc\ a 

Edit3

Workaround:

myfunc() { echo OK; } export -f myfunc perl -e open\(\$fh,\"\|-\",@ARGV\)\;close\$fh\; /bin/bash -c myfunc\ a 
added 30 characters in body
Source Link
Ole Tange
  • 37.6k
  • 34
  • 120
  • 230

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:

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:

Other working system:

But this shows only the definition on the working systems:

added 1262 characters in body
Source Link
Ole Tange
  • 37.6k
  • 34
  • 120
  • 230
Loading
added 1262 characters in body
Source Link
Ole Tange
  • 37.6k
  • 34
  • 120
  • 230
Loading
Source Link
Ole Tange
  • 37.6k
  • 34
  • 120
  • 230
Loading