diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Completion/BSD/Command/_portsnap | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index e54c6bbdc..1f6a2c705 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-07-22 Clint Adams <clint@zsh.org> + + * 23691: Completion/BSD/Command/_portsnap: declare local parameter + scope for _arguments state. + 2007-07-20 Peter Stephenson <p.w.stephenson@ntlworld.com> * Renato Botelho <rbgarga@gmail.com>: 23685: diff --git a/Completion/BSD/Command/_portsnap b/Completion/BSD/Command/_portsnap index 0e79e1f64..1808bcd20 100644 --- a/Completion/BSD/Command/_portsnap +++ b/Completion/BSD/Command/_portsnap @@ -1,5 +1,8 @@ #compdef portsnap +local context state line +typeset -A opt_args + flags=( '(cron)fetch[Fetch a compressed snapshot or update existing one]' '(fetch)cron[Sleep rand(3600) seconds, and then fetch updates]' @@ -17,7 +20,7 @@ _arguments -C -s \ '-s:Server from which to fetch updates:_hosts' \ '*:principal:->principal' && ret=0 -if [[ $state = principal ]]; then +if [[ $state == principal ]]; then _alternative \ ':file flag:_values -S " " -w "commands" $flags[@]' \ '*:path:_files -/' |