wycats / bundler

407 stars 30 forks source link

Platform dependend path separator #120

Closed valodzka closed 14 years ago

valodzka commented 14 years ago

Bundler doesn't use platform-independent path separator and this causes invalid PATH variable at least on windows.

bundler / lib / bundler / templates / environment.erb, line 10 instead of

  ENV["PATH"]     = "#{dir}/<%= bindir %>:#{ENV["PATH"]}"

should be

 ENV["PATH"]     = "#{dir}/<%= bindir %>#{File::PATH_SEPARATOR}#{ENV["PATH"]}"

And same for enviroment.rb

carlhuda commented 14 years ago

Use platform-independent path-separator. Closed by d7941860b9cfd6087b0e97eea01e9ddb5b44b895