Re: Distinguishing between XP / Vista / 7

2009-09-09 Thread Andy Koppe
2009/9/9 Fergus: > Now I find I need to distinguish between Vista and 7 but uname does not > provide a discriminant (CYGWIN_NT-6.1 in both cases, I think?). Vista is 6.0. Andy -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation:

Distinguishing between XP / Vista / 7

2009-09-09 Thread Fergus
To distinguish the host OS (XP or Vista) for an application I have used #! /bin/bash case `uname` in *NT-5*) OS_VER=XP ;; *NT-6*) OS_VER=Vista ;; esac echo $OS_VER Now I find I need to distinguish between Vista and 7 but uname does not provide a discriminant (CYGWIN_NT-6.1 in both cases, I