Re: [PATCH] repack: find -> /usr/bin/find, as for cygwin
- From
ryenus ◇ <ryenus@gmail.com>
- Date
- Mar 20, 2011, 08:42 UTC
- Message-ID
- <AANLkTim+sijuHidJNWyqC75yTFVo0YX67J3AXnPJVsoc@mail.gmail.com>
- In-Reply-To
- <vpqlj0ajkqa.fsf@bauges.imag.fr>
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 <Matthieu.Moy@grenoble-inp.fr> wrote:
Show 32 quoted lines
> ryenus ◇ <ryenus@gmail.com> 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/ >