zsh-workers
 help / color / mirror / code / Atom feed
* [BUG] Writing `./gradlew ` and pressing Tab prints "gradlew: command not found"
@ 2022-03-16 11:24 Marlon Richert
  2022-03-16 14:55 ` Bart Schaefer
  0 siblings, 1 reply; 2+ messages in thread
From: Marlon Richert @ 2022-03-16 11:24 UTC (permalink / raw)
  To: Zsh hackers list

This happens because on line 80 of _gradle, it tries to call $service,
which is at that point equal to `gradlew`, without the leading `./`.

Should _gradle perhaps be calling $_comp_command1 for this, instead of $service?


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [BUG] Writing `./gradlew ` and pressing Tab prints "gradlew: command not found"
  2022-03-16 11:24 [BUG] Writing `./gradlew ` and pressing Tab prints "gradlew: command not found" Marlon Richert
@ 2022-03-16 14:55 ` Bart Schaefer
  0 siblings, 0 replies; 2+ messages in thread
From: Bart Schaefer @ 2022-03-16 14:55 UTC (permalink / raw)
  To: Marlon Richert; +Cc: Zsh hackers list

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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-03-16 14:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-16 11:24 [BUG] Writing `./gradlew ` and pressing Tab prints "gradlew: command not found" Marlon Richert
2022-03-16 14:55 ` Bart Schaefer

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).