Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
String#shellsplit
str.shellsplit => array
lib/shellwords.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/shellwords.rb, line 215
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.