2
# Makes backticks behave (somewhat more) similarly on all platforms.
3
# On win32 `nonexistent_command` raises Errno::ENOENT; on Unix, the
4
# spawned shell prints a message to stderr and sets $?. We emulate
5
# Unix on the former but not the latter.
6
def `(command) #:nodoc:
8
rescue Errno::ENOENT => e
9
STDERR.puts "#$0: #{e}"
b'\\ No newline at end of file'