ryenus â <ryenus@xxxxxxxxx> writes: > oops, corrected the script with the test strings in upper cases > > #!/bin/sh > echo $(uname -s) > case $(uname -s) in > *MINGW*|*CYGWIN*) ^ This "|" means "or" in a case statement... > echo "detected MinGW/Cygwin" > ;; > *MINGW*) ...so I can see no way to reach this point: if the string matches *MINGW*, it also matches *MINGW*|*CYGWIN*. > echo "detected MinGW" > ;; > *CYGWIN*) > echo "detected Cygwin" > ;; > esac But you've just showed that $(uname -s) of Cygwin did contain upper-case CYGWIN, which I think was the point to verify :-). -- Matthieu Moy http://www-verimag.imag.fr/~moy/ -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html