summaryrefslogtreecommitdiff
path: root/samples/e.rb
blob: 2c26e6237ab3da6c6af092c699bd45c0f21e51c7 (plain)
1
2
3
4
5
6
7
8
9
#
# any environment vars specified are merged into the child's environment
#
  require 'systemu'

  env = %q( ruby -r yaml -e"  puts ENV[ 'answer' ] " )

  status = systemu env, 1=>stdout='', 'env'=>{ 'answer' => 0b101010 }
  puts stdout