oc process fails with error: the path "/cygdrive/c/openshift/projects/project.yml" does not exist

Solution Unverified - Updated -

Issue

When trying to pass a path to the "oc" binary for Microsoft Windows through cygwin, it fails with the following error.

$ export THIS_DIR=$(pwd)
$ oc process -f $THIS_DIR/project.yml PROJECT=test
error: the path "/cygdrive/c/openshift/projects/project.yml" does not exist

Environment

Microsoft Windows
Cygwin
OpenShift v3.x Windows Client

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content