Created
July 20, 2016 19:12
-
-
Save davidcpell/b6832843144014504998b4abf5f64642 to your computer and use it in GitHub Desktop.
osx/ubuntu Kernel#system
This file contains 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
fail "Can't create cartridge: missing 'cartridge' utility" unless system("hash cartridge") # offending code | |
### UBUNTU COMMAND LINE | |
$ hash cartridge | |
$ echo $? | |
0 | |
### UBUNTU IRB | |
system("hash cartridge") | |
=> nil | |
puts $? | |
=> ... exit 127 | |
### OSX IRB | |
system("hash cartridge") | |
=> true | |
puts $? | |
=> ... exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment