Sha256: 17a7c11cd9560bc9fd8afc25a2997cfde913a2dc19669ca89eaa3b438f92e868

Contents?: true

Size: 399 Bytes

Versions: 50

Compression:

Stored size: 399 Bytes

Contents

# frozen_string_literal: true

class Object
  # Makes backticks behave (somewhat more) similarly on all platforms.
  # On win32 `nonexistent_command` raises Errno::ENOENT; on Unix, the
  # spawned shell prints a message to stderr and sets $?. We emulate
  # Unix on the former but not the latter.
  def `(command) #:nodoc:
    super
  rescue Errno::ENOENT => e
    STDERR.puts "#$0: #{e}"
  end
end

Version data entries

50 entries across 50 versions & 8 rubygems

Version Path
activesupport-5.2.8.1 lib/active_support/core_ext/kernel/agnostics.rb
activesupport-5.2.8 lib/active_support/core_ext/kernel/agnostics.rb
activesupport-5.2.7.1 lib/active_support/core_ext/kernel/agnostics.rb
activesupport-5.2.7 lib/active_support/core_ext/kernel/agnostics.rb
activesupport-5.2.6.3 lib/active_support/core_ext/kernel/agnostics.rb
activesupport-5.2.6.2 lib/active_support/core_ext/kernel/agnostics.rb
activesupport-5.2.6.1 lib/active_support/core_ext/kernel/agnostics.rb
activesupport-5.2.6 lib/active_support/core_ext/kernel/agnostics.rb
activesupport-5.2.4.6 lib/active_support/core_ext/kernel/agnostics.rb
activesupport-5.2.5 lib/active_support/core_ext/kernel/agnostics.rb
activesupport-5.2.4.5 lib/active_support/core_ext/kernel/agnostics.rb
grape-extra_validators-2.0.0 vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.1/lib/active_support/core_ext/kernel/agnostics.rb
activesupport-5.2.4.4 lib/active_support/core_ext/kernel/agnostics.rb
activesupport-5.2.4.3 lib/active_support/core_ext/kernel/agnostics.rb
activesupport-5.2.4.2 lib/active_support/core_ext/kernel/agnostics.rb
grape-extra_validators-1.0.0 vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.4.1/lib/active_support/core_ext/kernel/agnostics.rb
activesupport-5.2.4.1 lib/active_support/core_ext/kernel/agnostics.rb
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/core_ext/kernel/agnostics.rb
activesupport-5.2.4 lib/active_support/core_ext/kernel/agnostics.rb
activesupport-5.2.4.rc1 lib/active_support/core_ext/kernel/agnostics.rb