bug-bash
[Top][All Lists]
Advanced

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

what matched in a case statement


From: Poor Yorick
Subject: what matched in a case statement
Date: Tue, 13 May 2008 18:45:37 +0000

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
                ;;
        lawless*)
                echo $CASEMATCH two
                ;;
esac


-- 
Yorick




reply via email to

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