From 5ace1fd87ab4a51a79e4599693ce6b081b1b3ae1 Mon Sep 17 00:00:00 2001 From: quix Date: Fri, 12 Dec 2008 20:06:25 -0500 Subject: [PATCH] expand_path gives forward slashes, but at least cmd.exe requires backslashed path --- lib/rake/repaired_system.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/rake/repaired_system.rb b/lib/rake/repaired_system.rb index 60e75d037..4ef504d58 100644 --- a/lib/rake/repaired_system.rb +++ b/lib/rake/repaired_system.rb @@ -124,9 +124,9 @@ def system(cmd, *args) if args.empty? [repair_command(file)] elsif file =~ BATCHFILE_PATTERN - [ENV["COMSPEC"], "/c", File.expand_path(file), *args] + [ENV["COMSPEC"], "/c", to_backslashes(File.expand_path(file)), *args] elsif runnable = find_runnable(file) - [File.expand_path(runnable), *args] + [to_backslashes(File.expand_path(runnable)), *args] else # maybe a built-in shell command [join_command(file, *args)]