Skip to content

Commit

Permalink
expand_path gives forward slashes, but at least cmd.exe requires back…
Browse files Browse the repository at this point in the history
…slashed path
  • Loading branch information
quix authored and jimweirich committed Dec 14, 2008
1 parent 20a9794 commit 5ace1fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rake/repaired_system.rb
Expand Up @@ -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)]
Expand Down

0 comments on commit 5ace1fd

Please sign in to comment.