diff options
author | Clint Adams <clint@users.sourceforge.net> | 2007-07-22 11:40:00 +0000 |
---|---|---|
committer | Clint Adams <clint@users.sourceforge.net> | 2007-07-22 11:40:00 +0000 |
commit | c388a9f495a6ffceb5a3ed6e9f6ddf2b4b5ef180 (patch) | |
tree | 370459dfbfa2eeb1b77b08845c9377bb6b851679 | |
parent | ae5af3a655c73445e4c13ac2b74fe5357815dda9 (diff) | |
download | zsh-c388a9f495a6ffceb5a3ed6e9f6ddf2b4b5ef180.tar.gz zsh-c388a9f495a6ffceb5a3ed6e9f6ddf2b4b5ef180.tar.xz zsh-c388a9f495a6ffceb5a3ed6e9f6ddf2b4b5ef180.zip |
23691: declare local parameter scope for _arguments state.
-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 -/' |