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

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

2 participants

@darthdeus

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

@alexgodin

We have since moved to cocaine which solves this problem.

Thanks,

Alex

@alexgodin alexgodin closed this Jun 30, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment