instance method
String#shellescape
() -> ::String
str.shellescape => string
lib/shellwords.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/shellwords.rb, line 238
def shellescape
Shellwords.escape(self)
end
Escapes str so that it can be safely used in a Bourne shell command line.
See Shellwords.shellescape for details.