I need to test from shell (in a predictable way) if I'm currently running under WSL. How should I go about doing this?
This is what uname -v returns on Windows Anniversary update: #1 PREEMPT Thu Aug 1 17:06:05 CST 2013
I wonder what PREEMPT is. Should I use this?
EDIT: No, PREEMPT seems to be unrelated to WSL
EDIT 2: A bad hack would be: $(ps auxww | grep root | grep -v grep | wc -l) -lt $ASMALLNUMBER