Cygwin Recipes: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
No edit summary
Line 20: Line 20:
"$java_executable" -version
"$java_executable" -version
</pre>
</pre>


=cygwin Login Banner=
=cygwin Login Banner=


... Is the content of <tt>/etc/motd</tt>.
... Is the content of <tt>/etc/motd</tt>.

Revision as of 01:08, 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

cygwin Login Banner

... Is the content of /etc/motd.