Cygwin Recipes: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=Internal= * Cygwin =Detecting Cygwin from a Script= <pre> if [ "$OSTYPE" = "cygwin" ]; then ... fi </pre> =Handling Path with Spaces in Cygwin=...")
 
No edit summary
Line 7: Line 7:


<pre>
<pre>
    if [ "$OSTYPE" = "cygwin" ]; then
if [ "$OSTYPE" = "cygwin" ]; then
            ...
  ...
    fi
fi
</pre>
</pre>


Line 15: Line 15:


<pre>
<pre>
        if [ "$OSTYPE" = "cygwin" ]; then
f [ "$OSTYPE" = "cygwin" ]; then
            java_executable=`cygpath "$java_executable"`
    java_executable=`cygpath "$java_executable"`
        fi
fi


        "$java_executable" -version
"$java_executable" -version
</pre>
</pre>

Revision as of 01:02, 13 January 2016

Internal


Detecting Cygwin from a Script

if [ "$OSTYPE" = "cygwin" ]; then
   ...
fi

Handling Path with Spaces in Cygwin

f [ "$OSTYPE" = "cygwin" ]; then
     java_executable=`cygpath "$java_executable"`
fi

"$java_executable" -version