Skip to content
This repository

CommandLine.unix? returns true on Windows with Cygwin installed #364

Closed
darthdeus opened this Issue November 27, 2010 · 1 comment

2 participants

Jakub Arnold Alex Godin
Jakub Arnold

I just ran into a issue, when paperclip identified my Windows Vista x64 as Linux in the CommandLine#interpolate method.

Since unix? method is defined as:

def self.unix?
  File.exist?("/dev/null")
end

it returns true on my system because I have Cygwin installed and in PATH. I posted the whole issue on stackoverflow

Alex Godin

We have since moved to cocaine which solves this problem.

Thanks,

Alex

Alex Godin alexgodin closed this June 30, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.