Skip to content

Instantly share code, notes, and snippets.

Created May 27, 2013 21:25
Show Gist options
  • Save anonymous/cf8b26a362b135ab754a to your computer and use it in GitHub Desktop.
Save anonymous/cf8b26a362b135ab754a to your computer and use it in GitHub Desktop.
[1] pry(main)> cmd = ["tiff2pdf"]
=> ["tiff2pdf"]
[2] pry(main)> cmd << "-p" << "A4"
=> ["tiff2pdf", "-p", "A4"]
[3] pry(main)> cmd << "-c" << "FFM"
=> ["tiff2pdf", "-p", "A4", "-c", "FFM"]
[4] pry(main)> `#{cmd}`
sh: [tiff2pdf,: command not found
=> ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment