diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-10-09 14:41:24 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-10-09 14:41:24 +0000 |
commit | 88d6c083ea969b5e7b24315fd612958755afcc54 (patch) | |
tree | 4b17c2e0c1b4b362b97aa64b9e131de7e3a0a9ed /lib/shellwords.rb | |
parent | c009be97e8f940912888885284ca78b0797ea655 (diff) | |
download | ruby-88d6c083ea969b5e7b24315fd612958755afcc54.tar.gz |
* ext/extmk.rb, lib/fileutils.rb, lib/mkmf.rb, lib/optparse.rb,
lib/shellwords.rb: get rid of shadowing outer local variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/shellwords.rb')
-rw-r--r-- | lib/shellwords.rb | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/shellwords.rb b/lib/shellwords.rb index 1d97cd62f2..04d0c4fff8 100644 --- a/lib/shellwords.rb +++ b/lib/shellwords.rb @@ -28,7 +28,6 @@ module Shellwords def shellwords(line) words = [] field = '' - word = sq = dq = esc = garbage = sep = nil line.scan(/\G\s*(?>([^\s\\\'\"]+)|'([^\']*)'|"((?:[^\"\\]|\\.)*)"|(\\.?)|(\S))(\s|\z)?/m) do |word, sq, dq, esc, garbage, sep| raise ArgumentError, "Unmatched double quote: #{line.inspect}" if garbage |