51817: protect ':' in _rcctl

This was in 51817 but missed in commit 0577daf.
Also remove _ant.rej that was added by the commit.
This commit is contained in:
Stephane Chazelas 2023-06-08 15:25:13 +09:00 committed by Jun-ichi Takimoto
parent 58852b3246
commit 2778fc5d7a
3 changed files with 6 additions and 14 deletions

View file

@ -1,3 +1,8 @@
2023-06-08 Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>
* Stephane: 51817: Completion/BSD/Command/_rcctl: protect ':'
in _rcctl (was in 51817 but missed in commit 0577daf)
2023-06-06 Peter Stephenson <p.stephenson@samsung.com>
* Stephan: 51818: Protect another ':'.

View file

@ -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

View file

@ -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