bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: what matched in a case statement


From: jidanni
Subject: Re: what matched in a case statement
Date: Thu, 15 May 2008 09:44:07 +0800

Poor Yorick wrote:
> Is there any way to get a handle on what matched in a case
> statement?  Something like this:
> 
> case "lawlesspoets" in
>         *poets)
>                 echo $CASEMATCH one
Well, nobody would do
> case "lawlesspoets" in
in reality you would always have some variable. So just do
CASEMATCH=lawlesspoets; case $CASEMATCH in ...
so there.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]