From dbf49eb688667280f27d0a561b88f0e4fddf0738 Mon Sep 17 00:00:00 2001 From: wakou Date: Sun, 3 Jun 2001 19:25:07 +0000 Subject: * lib/shellwords.rb: don't destroy argument. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1491 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/shellwords.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/shellwords.rb b/lib/shellwords.rb index 5c31f8ca7..9fd757117 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 = '' -- cgit