Advertisement
Guest User

Untitled

a guest
Jan 12th, 2015
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.29 KB | None | 0 0
  1. require 'escape'
  2. require 'pry'
  3. puts "Please type in unquoted shell command"
  4. command = gets.chomp
  5. #command = gets.split(" ")
  6. #escaped = *[command].to_s
  7. binding.pry
  8. escaped = Escape.shell_command([command]).to_s
  9. puts escaped
  10.  
  11. #Please type in unquoted shell command
  12. #test '
  13. #'test '\'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement