Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #14248
| Path | csiph.com!xmission!news.snarked.org!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail |
|---|---|
| From | Luca Boccassi <bluca@debian.org> |
| Newsgroups | gnu.bash.bug |
| Subject | Re: [PATCH] Add nofirstword completion option |
| Date | Tue, 19 Jun 2018 15:27:43 +0100 |
| Lines | 70 |
| Approved | bug-bash@gnu.org |
| Message-ID | <mailman.2248.1529418475.1292.bug-bash@gnu.org> (permalink) |
| References | <20180518110611.5099-1-bluca@debian.org> <96bcb197-40d1-aac8-c214-c513a6db805d@case.edu> <1527068652.6997.5.camel@debian.org> <76b1d3fa-4cb1-3e70-d93c-ada07c04dfa2@case.edu> <1527082457.6997.14.camel@debian.org> <4ccfc554-15a9-2ec1-55e1-b2df687f0bee@case.edu> <1527270167.6997.22.camel@debian.org> <3a98f6c5-0f1e-54aa-491c-da7100430ce8@case.edu> <1527605096.6997.27.camel@debian.org> <1527860403.6997.72.camel@debian.org> <1528468856.6554.6.camel@debian.org> <e33be886-7975-2e2f-d2d9-a45e24408f72@case.edu> <1528824534.6554.23.camel@debian.org> <c73f2b22-ee77-1ef9-3762-323aa381554e@case.edu> <1528830900.6554.25.camel@debian.org> <dd7d2a46-edb3-dc78-4ac6-84b0e4c849a4@case.edu> |
| NNTP-Posting-Host | lists.gnu.org |
| Mime-Version | 1.0 |
| Content-Type | multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-c8QUAIQHq1fJIYzCpQI4" |
| X-Trace | usenet.stanford.edu 1529418475 31141 208.118.235.17 (19 Jun 2018 14:27:55 GMT) |
| X-Complaints-To | action@cs.stanford.edu |
| To | chet.ramey@case.edu, bug-bash@gnu.org |
| Envelope-to | bug-bash@gnu.org |
| X-Google-DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:mime-version; bh=LZeQqc4G3IoTiovFioF0yVhSgYR1DxQytRyS+mXt8Ug=; b=LNn5bvLQb8bPFaseu4ZuwITAcwFEvZv/rq+qZSF2OkIgFtr8pleeW/6BEHJ0/r4x18 t/oP1JoOWJ5vHfyGyNFPAtA8UByne5LaeiCxCutNqcCrB7FbmdKkkEOdE+PbVICai55U 3b1AdVeVDt27X5HQY9WGr3nWXa2iGwbU96/JS0utUM+6qABBO+RwqVbEI6/47SHuexEp EoA6q6IpBZ+B0VAYV+xEpBY1MzaNhNOTK5uolOZWeT4lDq5N+BUpPRYDZAVKXzQyyOXe 83FGbZ4kJqKI9HdumBFyvuv/G+U56TKGzOI7Q4vn1R45vyBU94xAo0v+Lc0B6wUW6Hlj QSsQ== |
| X-Gm-Message-State | APt69E1mZZ+GCyXFI5v4SLqfS+/iep3y53tmBmNWbdq4USGDKYZBoBLi Gh5otYfsQHg+tFqqItMunf8= |
| X-Google-Smtp-Source | ADUXVKJ2r31uA5xYDuWLR4IIUAZMcCRHbewJVBuLKqQzXnPQLuYdgUwQOLXM7o7Q2TnFCJmx89xk1Q== |
| X-Received | by 2002:a1c:92ce:: with SMTP id u197-v6mr12570900wmd.120.1529418467461; Tue, 19 Jun 2018 07:27:47 -0700 (PDT) |
| In-Reply-To | <dd7d2a46-edb3-dc78-4ac6-84b0e4c849a4@case.edu> |
| X-Mailer | Evolution 3.22.6-1+deb9u1 |
| X-detected-operating-system | by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] |
| X-Received-From | 74.125.82.65 |
| X-BeenThere | bug-bash@gnu.org |
| X-Mailman-Version | 2.1.21 |
| Precedence | list |
| List-Id | Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org> |
| List-Unsubscribe | <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe> |
| List-Archive | <http://lists.gnu.org/archive/html/bug-bash/> |
| List-Post | <mailto:bug-bash@gnu.org> |
| List-Help | <mailto:bug-bash-request@gnu.org?subject=help> |
| List-Subscribe | <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe> |
| Xref | csiph.com gnu.bash.bug:14248 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
On Tue, 2018-06-12 at 15:18 -0400, Chet Ramey wrote: > On 6/12/18 3:15 PM, Luca Boccassi wrote: > > > In case it can be somewhat useful, once 5.0-beta with the new > > option is > > out I'll ask QA at $work to run regressions tests on it and report > > back > > in case any issues are found. They have a lot of tests for the > > command > > line interface (not just related to completion), so perhaps it > > could > > help a little with testing the new version. > > That would be great, thanks. Hi Chet, Found another small issue: the INITIALWORD Iflag in complete.def is not initialised in the compopt_builtin function, which means it sometimes evaluates to true and spuriously triggers a loookup for the INITIALWORD completion even though it's not set, printing an error, for example trying to complete "sh": $ sh-bash: compopt: _InitialWorD_: no completion specification The fix is quite simple and it's inlined below. Thanks! -- Kind regards, Luca Boccassi --- a/builtins/complete.def +++ b/builtins/complete.def @@ -831,7 +831,7 @@ compopt_builtin (list) WORD_LIST *l, *wl; COMPSPEC *cs; - opts_on = opts_off = Eflag = Dflag = 0; + opts_on = opts_off = Eflag = Dflag = Iflag= 0; ret = EXECUTION_SUCCESS; reset_internal_getopt (); -- 2.17.1
Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread
Re: [PATCH] Add nofirstword completion option Luca Boccassi <bluca@debian.org> - 2018-06-19 15:27 +0100
csiph-web