[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: am_edit magic
From: Stephan Kulow <coolo () kde ! org>
Date: 2000-03-19 9:43:36
[Download RAW message or body]
David Faure wrote:
>
> 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 ?
>
Well, in C you can't use variables as switch label either.
I wouldn't be suprised if that goes for shell too.
Greetings, Stephan
--
Programmers, heed this: If someone starts asking you about
agricultural genomes, it's likely time to get a handler.
zdnet.com about Torvalds
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic