Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: buggy configure completion - when both --enable-foo and --disable-foo are listed
- X-seq: zsh-workers 39134
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: buggy configure completion - when both --enable-foo and --disable-foo are listed
- Date: Wed, 31 Aug 2016 03:00:55 +0000
- 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=
- In-reply-to: <20160830232332.GA23779@zira.vinc17.org>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20160830232332.GA23779@zira.vinc17.org>
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 --<TAB>
--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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author