From: Matthieu Moy Date: Sun, 20 Mar 2011 07:48:29 GMT Subject: Re: [PATCH] repack: find -> /usr/bin/find, as for cygwin Message-ID: In-Reply-To: ryenus ◇ 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/