Cygwin Recipes: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
No edit summary
Line 2: Line 2:


* [[Cygwin]]
* [[Cygwin]]


=Detecting Cygwin from a Script=
=Detecting Cygwin from a Script=

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