Re: [PATCH] repack: find -> /usr/bin/find, as for cygwin
- From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
- Date
- Mar 20, 2011, 07:48 UTC
- Message-ID
- <vpqlj0ajkqa.fsf@bauges.imag.fr>
- In-Reply-To
- <AANLkTinFFnm7-TKcbTdbzJHx4i4L8rdi4xogr3R7=7s1@mail.gmail.com>
ryenus ◇ <ryenus@gmail.com> writes:
Show 6 quoted lines
> 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*.
Show 6 quoted lines
> 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/