Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'escape'
- require 'pry'
- puts "Please type in unquoted shell command"
- command = gets.chomp
- #command = gets.split(" ")
- #escaped = *[command].to_s
- binding.pry
- escaped = Escape.shell_command([command]).to_s
- puts escaped
- #Please type in unquoted shell command
- #test '
- #'test '\'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement