1 番目と 2 番目のバリアントが機能しないのに、3 番目のバリアントが機能する理由
#!/bin/sh
#---------------------------------------------
text="my:?text=this:one"
if (echo $text | grep '^my\:\?text=this\:one') then
echo "1"
elif (echo $text | grep '^my:\?text=this:one') then
echo "2"
elif (echo $text | grep 'text=this:one') then
echo "3"
fi