From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25097 invoked by alias); 31 Aug 2016 03:01:21 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 39134 Received: (qmail 14384 invoked from network); 31 Aug 2016 03:01:21 -0000 X-Qmail-Scanner-Diagnostics: from out4-smtp.messagingengine.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(66.111.4.28):SA:0(0.0/5.0):. Processed in 0.127846 secs); 31 Aug 2016 03:01:21 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: d.s@daniel.shahaf.name X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at daniel.shahaf.name does not designate permitted sender hosts) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=dl4Pf3EdBb+GIro3wJZ06fchOK0=; b=eMnz6u K9qpp+fLEANKaBs+9uORdix8Vb6zuhTBg7PRVXmdVHtmQVGTOGkwIsnoy8YDPzVi cQmS8EJraDauuTGCqwbSsD+wp1ZXUImLjhM6SgUgwpSq4GwxUJOfhr2zbULhJPJu 0yi4RjIxhZ0h9XKMclDsuBvQFvqu8FsrL8YV0= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=dl4Pf3EdBb+GIro3wJZ06fchOK0=; b=VF3Ho v15ror88YOKVU8BizeZcVb7PeCXZHQP/GRZ5H5abeVZLN4HjxpjtT1WWQdnEiPww yIwGGBByAq9TYBv715bUA9hZ6xbCvqcWCbIEE8B0uiwxHlKglImr764TMGrtcvQM dSTOcV6/HjSsNVEIdu28QC4hv22WwivpNhOem8= X-Sasl-enc: vtC2OLy7PSrwvf/6oUpxy0xzTyp+NvuYnVjqgndE5mBv 1472612478 Date: Wed, 31 Aug 2016 03:00:55 +0000 From: Daniel Shahaf To: zsh-workers@zsh.org Subject: Re: buggy configure completion - when both --enable-foo and --disable-foo are listed Message-ID: <20160831030055.GC30557@fujitsu.shahaf.local2> References: <20160830232332.GA23779@zira.vinc17.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20160830232332.GA23779@zira.vinc17.org> User-Agent: Mutt/1.5.23 (2014-03-12) You raise two separate issues, so let's split them into separate subthreads. Vincent Lefevre wrote on Wed, Aug 31, 2016 at 01:23:32 +0200: > With zsh 5.2, I get the following, which doesn't make sense: > > zira:~/software/mpfr> ./configure --enable-decimal-float[Tab] > Completing option > --enable-decimal-float -- build conversion functions from/to decimal floats > --enable-decimal-float -- explicitly disable decimal floats support > > One has from the "configure --help" output: > > --disable-decimal-float explicitly disable decimal floats support > --enable-decimal-float build conversion functions from/to decimal floats > [default=autodetect] What do you expect to see? How should the two strings ("build .." and "explicitly ...") be handled? Minimal example: % print -rl -- '#!/bin/sh' 'cat <<"EOF"' ' --enable-foo enable foo' ' --disable-foo disable foo' 'EOF' >configure % chmod +x configure % ./configure -- --disable-foo --enable-foo -- enable foo --disable-foo --enable-foo -- disable foo I think that's the best we can do without writing new C code to suport multiline descriptions. Cheers, Daniel