End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
String#shellsplit
str.shellsplit => array
lib/shellwords.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.2.0/lib/shellwords.rb, line 213
def shellsplit
Shellwords.split(self)
end
Splits str into an array of tokens in the same way the UNIX Bourne shell does.
See Shellwords.shellsplit for details.