lib/ffi-compiler/shell.rb in ffi-compiler2-2.2.2 vs lib/ffi-compiler/shell.rb in ffi-compiler2-2.3.0
- old
+ new
@@ -10,10 +10,10 @@
end
end
def shelljoin(args)
if FFI::Platform::OS == 'windows'
- args.reduce { |cmd, arg| cmd + ' "' + arg.gsub('"', '""') + '"' }
+ args.reduce { |cmd, arg| cmd + ' ' + shellescape(arg) }
else
args.shelljoin
end
end