[MacRuby-devel] open('|foo') semantics not supported?

Caio Chassot lists at caiochassot.com
Wed Feb 9 06:01:08 PST 2011


Quick test:

  $ ruby -e 'open("|pbcopy", "w") { |io| io << "test #{rand}" }; puts(`pbpaste`)'
  test 0.8639874244022235
  $ macruby -e 'open("|pbcopy", "w") { |io| io << "test #{rand}" }; puts(`pbpaste`)'
  -e:1:in `<main>': not opened for writing (IOError)

Why the error with MacRuby?


More information about the MacRuby-devel mailing list