return nil if file.eof
l = file.gets().strip()
if not /[^=]+=[^=]+/.match(l)
- value += l if /[0-9A-Fa-f]{5}/.match(l)
+ value += l if /^[0-9A-Fa-f]{5}/.match(l)
end
end until /[^=]+=[^=]+/.match(l)
$last_assign[i] = l
return nil if file.eof
l = file.gets().strip()
if not /[^=]+=[^=]+/.match(l)
- value += l if /[0-9A-Fa-f]{5}/.match(l)
+ value += l if /^[0-9A-Fa-f]{5}/.match(l)
end
end until /[^=]+=[^=]+/.match(l)
$last_assign[i] = l
$quiet=true
end
else
- f1 = ARGV[1]
- f2 = ARGV[2]
+ f1 = ARGV[0]
+ f2 = ARGV[1]
end
puts("compare("+f1+", "+f2+")")