Skip to content

Instantly share code, notes, and snippets.

@samueldr
Created April 17, 2019 23:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samueldr/9da052fb105e942f9770918f66a41839 to your computer and use it in GitHub Desktop.
Save samueldr/9da052fb105e942f9770918f66a41839 to your computer and use it in GitHub Desktop.
irb(main):007:0> "#{["echo", "-ne", "a test\n"].shelljoin}"
=> "echo -ne a\\ test'\n'"
irb(main):008:0> `#{["echo", "-ne", "a test\n"].shelljoin}`
=> "a test\n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment