~michaelforrest/use-case-mapper/trunk

« back to all changes in this revision

Viewing changes to vendor/rails/activesupport/lib/active_support/core_ext/kernel/agnostics.rb

  • Committer: Richard Lee (Canonical)
  • Date: 2010-10-15 15:17:58 UTC
  • mfrom: (190.1.3 use-case-mapper)
  • Revision ID: richard.lee@canonical.com-20101015151758-wcvmfxrexsongf9d
Merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
class Object
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:
7
 
    super
8
 
  rescue Errno::ENOENT => e
9
 
    STDERR.puts "#$0: #{e}"
10
 
  end
11
 
end
 
 
b'\\ No newline at end of file'