You made me look this up, I always thought doing setcode 'blah' used Facter::Util::Resolution.exec() but it actually uses INTERPRETER if I'm reading the code right (setcode is defined in resolution.rb):

It uses:

@interpreter = interp || INTERPRETER

We're not setting interp, just a string, so we fall back to:

INTERPRETER = Facter::Util::Config.is_windows? ? "cmd.exe" : "/bin/sh"

So it seems like maybe we don't get the full exec effect if we do this.  @finch - Is using setcode '' deprecated in favor of being explicit?  I think maybe I'm just not following something and we're really getting a call to exec along the way.