From: ryenus ◇ Date: Sun, 20 Mar 2011 08:42:20 GMT Subject: Re: [PATCH] repack: find -> /usr/bin/find, as for cygwin Message-ID: In-Reply-To: Hey Matthieu, Yes, I mean it. The purpose of this test script is to testify that "*MINGW*|*CYGWIN*" will match MinGW and/or Cygwin, so that it won't fall down to the next 2 cases. On Sun, Mar 20, 2011 at 15:48, Matthieu Moy wrote: > 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/ >