examples/env.rb in tty-command-0.7.0 vs examples/env.rb in tty-command-0.8.0
- old
+ new
@@ -2,8 +2,8 @@
require 'tty-command'
cmd = TTY::Command.new
-out, err = cmd.run(:echo, "$FOO", env: { foo: 'hello'})
+out, err = cmd.run("env | grep FOO", env: { 'FOO' =>'hello'})
puts "Result: #{out}"