I have a shell script that is used both on Windows/Cygwin and Mac and Linux. It needs slightly different variables for each versions.
How can a shell/bash script de
http://en.wikipedia.org/wiki/Uname
All the info you'll ever need. Google is your friend.
Use uname -s to query the system name.
uname -s
Darwin
CYGWIN_...
LINUX