-
Notifications
You must be signed in to change notification settings - Fork 330
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IO.popen(*command) fails #15
Comments
Awww damn, I thought I had tested that. Thanks! |
Hmm, it seems to work for me on 1.9.3-p194. Which version are you on? |
1.9.3p194. It works with a string, or with a single-element array. But it fails with multi-element arrays: IO.popen("echo sup dawg") # works
IO.popen(["echo", "sup", "dawg"]) # works
IO.popen(*["echo sup dawg"]) # works
IO.popen(*["echo", "sup", "dawg"]) # fails
This is consistent with the documentation, which says it takes either a string or an array of strings as the first argument. |
You’re completely right. Thanks! |
Released as 1.4.2 |
Awesome :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
in Ruby 1.9.3 (here: https://github.com/alloy/terminal-notifier/blob/master/Ruby/lib/terminal-notifier.rb#L20 )
Removing the star works:
whee!
The text was updated successfully, but these errors were encountered: