[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: am_edit magic
From: Andreas Pour <pour () mieterra ! com>
Date: 2000-03-19 4:08:14
[Download RAW message or body]
David Faure wrote:
Hi,
Try:
echo "Second test"
b='(abc|blah|des)';
eval "case blah in \
$b echo ok ;; \
*) echo ko;; \
esac;"
Ciao,
Andreas
> On Thu, Mar 16, 2000 at 08:40:32PM +0100, Stephan Kulow wrote:
> > What you had to do is to add a little grep and sed on the toplevel Makefile
> > to add a third case "compile last". But then I would suggest to make it more
> > general and introduce a COMPILE_FIRST too
>
> I'm in the process of doing this, but I get stuck by the way
> case works:
>
> echo First test
> case blah in
> (abc|blah|des) echo ok;;
> *) echo ko;;
> esac;
>
> echo Second test
> b='(abc|blah|des)';
> case blah in
> $b) echo ok ;;
> *) echo ko;;
> esac;
>
> This gives ok but then ko....
>
> Any other way to use a variable in a case statement ?
>
> --
> David FAURE
> david@mandrakesoft.com, faure@kde.org
> http://home.clara.net/faure/
> KDE, Making The Future of Computing Available Today
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic