Created
May 12, 2012 22:09
-
-
Save beakr/2669372 to your computer and use it in GitHub Desktop.
Why I like system() more than Rake's sh()
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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