From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24831 invoked by alias); 31 Aug 2016 06:16:02 -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: 39137 Received: (qmail 6802 invoked from network); 31 Aug 2016 06:16:02 -0000 X-Qmail-Scanner-Diagnostics: from ioooi.vinc17.net 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(92.243.22.117):SA:0(-1.5/5.0):. Processed in 0.428305 secs); 31 Aug 2016 06:16:02 -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=-1.5 required=5.0 tests=RP_MATCHES_RCVD autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: vincent@vinc17.net X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at vinc17.net does not designate permitted sender hosts) Date: Wed, 31 Aug 2016 08:15:55 +0200 From: Vincent Lefevre To: zsh-workers@zsh.org Subject: Re: buggy configure completion - when both --enable-foo and --disable-foo are listed Message-ID: <20160831061555.GA15435@zira.vinc17.org> Mail-Followup-To: zsh-workers@zsh.org References: <20160830232332.GA23779@zira.vinc17.org> <20160831030055.GC30557@fujitsu.shahaf.local2> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20160831030055.GC30557@fujitsu.shahaf.local2> X-Mailer-Info: https://www.vinc17.net/mutt/ User-Agent: Mutt/1.7.0-6766-vl-r91193 (2016-08-17) On 2016-08-31 03:00:55 +0000, Daniel Shahaf wrote: > 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 The problem is that it says "build conversion functions from/to decimal floats" after --enable-decimal-float while it corresponds to --disable-decimal-float. So, I'd say, either --enable-decimal-float -- build conversion functions from/to decimal floats --disable-decimal-float -- explicitly disable decimal floats support (thus skipping the --disable-decimal-float when one completes on --enable[Tab]), or add "=no" for the disable cases, e.g.: --enable-decimal-float -- build conversion functions from/to decimal floats --enable-decimal-float=no -- explicitly disable decimal floats support -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)