diff options
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 |