diff options
author | wakou <wakou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-06-03 19:25:07 +0000 |
---|---|---|
committer | wakou <wakou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-06-03 19:25:07 +0000 |
commit | 852e6bcb2f7b6a42d7823ddd5b52bf756df6528f (patch) | |
tree | b2185fb083349f900a3ee69ba86eb24da2ba34be /lib/shellwords.rb | |
parent | b0e4eff3a4637fe2a385398e495b7c82e217b591 (diff) |
* lib/shellwords.rb: don't destroy argument.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1491 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/shellwords.rb')
-rw-r--r-- | lib/shellwords.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/shellwords.rb b/lib/shellwords.rb index 5c31f8ca78..9fd7571172 100644 --- a/lib/shellwords.rb +++ b/lib/shellwords.rb @@ -16,7 +16,7 @@ module Shellwords unless line.kind_of?(String) raise ArgumentError, "Argument must be String class object." end - line.sub!(/\A\s+/, '') + line = line.sub(/\A\s+/, '') words = [] while line != '' field = '' |