about summary refs log tree commit diff
diff options
context:
space:
mode:
authorShohei Yoshida <syohex@gmail.com>2023-09-23 12:13:36 +0900
committerOliver Kiddle <opk@zsh.org>2023-11-01 00:31:10 +0100
commit8ebbf25a71ec3e194616d2d10bef629efa266bee (patch)
tree6cac13b2e132e07a16d98502809f82986de29ea7
parent97e43105637d92c20cdf0eb60577329af681d870 (diff)
downloadzsh-8ebbf25a71ec3e194616d2d10bef629efa266bee.tar.gz
zsh-8ebbf25a71ec3e194616d2d10bef629efa266bee.tar.xz
zsh-8ebbf25a71ec3e194616d2d10bef629efa266bee.zip
52179: Fix gradlew completion when it isn't in PATH
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Unix/Command/_gradle2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 07d6e6a22..96d8cab8a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2023-11-01  Oliver Kiddle  <opk@zsh.org>
+
+	* Shohei YOSHIDA: 52179: Completion/Unix/Command/_gradle:
+	Fix gradlew completion when it isn't in PATH
+
 2023-10-29  Matthew Martin  <phy1729@gmail.com>
 
 	* github #102: Ulysse Buonomo: Completion/Unix/Command/_todo.sh:
diff --git a/Completion/Unix/Command/_gradle b/Completion/Unix/Command/_gradle
index c1f7c05ee..280aa243f 100644
--- a/Completion/Unix/Command/_gradle
+++ b/Completion/Unix/Command/_gradle
@@ -92,7 +92,7 @@ if [[ $state == task && ! -prefix - ]]; then
                 zle -R "Generating cache from $gradle_buildfile"
 
                 # Run gradle/gradlew and retrieve possible tasks.
-                for outputline in ${(f)"$($service --build-file $gradle_buildfile -q tasks --all)"}; do
+                for outputline in ${(f)"$($words[1] --build-file $gradle_buildfile -q tasks --all)"}; do
 
                     # Tasks and subprojects each start with a lowercase letter, but whereas tasks are in camelCase, each
                     # subproject consists of one or more sections of kebab-case, with each section ending in a ':'.