From 2778fc5d7a1bf974147ee7e9b116adac97e20eea Mon Sep 17 00:00:00 2001 From: Stephane Chazelas Date: Thu, 8 Jun 2023 15:25:13 +0900 Subject: 51817: protect ':' in _rcctl This was in 51817 but missed in commit 0577daf. Also remove _ant.rej that was added by the commit. --- Completion/BSD/Command/_rcctl | 2 +- Completion/Unix/Command/_ant.rej | 13 ------------- 2 files changed, 1 insertion(+), 14 deletions(-) delete mode 100644 Completion/Unix/Command/_ant.rej (limited to 'Completion') diff --git a/Completion/BSD/Command/_rcctl b/Completion/BSD/Command/_rcctl index 98e4f9846..457c3eb85 100644 --- a/Completion/BSD/Command/_rcctl +++ b/Completion/BSD/Command/_rcctl @@ -46,6 +46,6 @@ case $service in '*:argument:' ;; ${(~j:|:)actions}|disable|enable) - _arguments "*:service to $words[2]:_services" + _arguments "*:service to ${words[2]}:_services" ;; esac diff --git a/Completion/Unix/Command/_ant.rej b/Completion/Unix/Command/_ant.rej deleted file mode 100644 index 15e26c9da..000000000 --- a/Completion/Unix/Command/_ant.rej +++ /dev/null @@ -1,13 +0,0 @@ ---- Completion/Unix/Command/_ant -+++ Completion/Unix/Command/_ant -@@ -79,8 +79,8 @@ case $state in - compset -P '*:' - compset -S ':*' - _alternative \ -- "classpath:$state:_path_files -qS: -g '*.(jar|zip)(-.)'" \ -- "classpath:$state:_path_files -r': ' -/" && ret=0 -+ "classpath:${state}:_path_files -qS: -g '*.(jar|zip)(-.)'" \ -+ "classpath:${state}:_path_files -r': ' -/" && ret=0 - ;; - property) - if compset -P 1 '*='; then -- cgit 1.4.1