Skip to content

Instantly share code, notes, and snippets.

@beakr
Created May 12, 2012 22:09
Show Gist options
  • Save beakr/2669372 to your computer and use it in GitHub Desktop.
Save beakr/2669372 to your computer and use it in GitHub Desktop.
Why I like system() more than Rake's sh()
system("echo 'Foo!'")
#=> Foo!
require 'rake'
sh("echo 'Foo!'")
#=>
# echo "Foo!" # It prints the commnd it's about to do!
# Foo! # Then runs it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment