[#1551] Hashes as keys — "Nathaniel Talbott" <nathaniel@...>

I was just playing around with Hash#hash and discovered that you can't use a

13 messages 2003/09/23

Problem with xsystem in lib/mkmf.rb

From: Albert Chin <ruby-core@...>
Date: 2003-09-22 21:47:49 UTC
List: ruby-core #1549
xsystem in lib/mkmf.rb is defined as:
  def xsystem command
    Config.expand(command)
    Logging::open do
      command = Shellwords.shellwords(command)
      puts command.quote.join(' ')
      system(*command)
    end
  end

What happens if you want to redirect output somewhere? The above will
fail because it passes '>outfile' as an argument to the command to
invoke. This problem surfaces on AIX because the IBM C compiler, xlc,
doesn't accept -o when CPP (xlc -E) is used. So,
CPPOUTFILE='> conftest.i', and zlib/mkmf.log gives the error:
  xlc: 1501-228 input file >conftest.i not found

How do I fix?

-- 
albert chin (china@thewrittenword.com)

In This Thread

Prev Next