[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: am_edit magic
From:       David Faure <david () mandrakesoft ! com>
Date:       2000-03-19 18:19:12
[Download RAW message or body]

On Sun, Mar 19, 2000 at 10:43:36AM +0100, Stephan Kulow wrote:
> 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.

Ok. I used if and grep instead :)

-- 
David FAURE, david@mandrakesoft.com, faure@kde.org
http://home.clara.net/faure/
KDE, Making The Future of Computing Available Today
See ftp://mandrakesoft.com/pub/david/kde1-and-kde2.txt to set up KDE 2

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic