From: Carl Worth Date: Fri, 4 Dec 2009 22:50:49 +0000 (-0800) Subject: Fix option parsing for the case of a value with '='. X-Git-Tag: 0.1~227 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=5022424cf3695f6d2432a8528ab49ede98a66632 Fix option parsing for the case of a value with '='. To support this we need to match the longest-possible suffix and then strip the shortest-possible prefix. --- diff --git a/configure b/configure index 70a3c3d8..54d55cba 100755 --- a/configure +++ b/configure @@ -8,7 +8,7 @@ PREFIX=/usr/local # option parsing for option; do - if [ "${option%=*}" = '--prefix' ] ; then + if [ "${option%%=*}" = '--prefix' ] ; then PREFIX="${option#*=}" fi done