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 realit
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
> ;;
> lawless*)
>
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