zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Marlon Richert <marlon.richert@gmail.com>
Cc: Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: [BUG] Writing `./gradlew ` and pressing Tab prints "gradlew: command not found"
Date: Wed, 16 Mar 2022 07:55:09 -0700	[thread overview]
Message-ID: <CAH+w=7a8Aw3LFTnutzJ+RW1p-7i7NUDbsOp5GKV1gD_WYoxSfQ@mail.gmail.com> (raw)
In-Reply-To: <CAHLkEDsZzzvDbHebnij5JtE61VxPBxs+JOb=7741UYG6uUiiVg@mail.gmail.com>

On Wed, Mar 16, 2022 at 4:26 AM Marlon Richert <marlon.richert@gmail.com> wrote:
>
> This happens because on line 80 of _gradle, it tries to call $service,
> which is at that point equal to `gradlew`, without the leading `./`.

There are a bunch of completions that assume $service can be run as a
command.  A few examples:

Completion/Unix/Command/_openstack
Completion/Unix/Command/_qemu
Completion/Unix/Command/_tar
Completion/Debian/Command/_axi-cache

I suspect we need a more generalized solution for the case where the
command being completed is not in $PATH.


      reply	other threads:[~2022-03-16 14:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-16 11:24 Marlon Richert
2022-03-16 14:55 ` Bart Schaefer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAH+w=7a8Aw3LFTnutzJ+RW1p-7i7NUDbsOp5GKV1gD_WYoxSfQ@mail.gmail.com' \
    --to=schaefer@brasslantern.com \
    --cc=marlon.richert@gmail.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).