From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22597 invoked by alias); 8 Oct 2013 16:58:56 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 31802 Received: (qmail 19382 invoked from network); 8 Oct 2013 16:58:40 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL autolearn=ham version=3.3.2 Message-ID: <525439B8.5060703@gmx.com> Date: Tue, 08 Oct 2013 12:58:32 -0400 From: llua User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.0 MIME-Version: 1.0 To: zsh-workers@zsh.org Subject: Re: [PATCH] local scope cmds_<1-6> parameters in _btrfs References: <1381251151-2169-1-git-send-email-llua@gmx.com> In-Reply-To: <1381251151-2169-1-git-send-email-llua@gmx.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:fEgxIb/G3R9RO0YGgIgs6aE0EuYesB+RreS9xR7VZAyE86wvLMO +XPWl+IZCor/+btCZdxrPXGa2jgOvq1mznqeCzRtNP8me0lvbjy8n9i0UJ+vW4FeC3Edi7B UBNE3mGvncyrJobqg6aZIv3c3z4yUzDLX+VsaDHizc05SGic6OqDfU+C0HD4RFMoVU3Ngiy aib22YWgXMdG366aJAR+g== On 10/08/2013 12:52 PM, Eric Cook wrote: > --- > Completion/Linux/Command/_btrfs | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Completion/Linux/Command/_btrfs b/Completion/Linux/Command/_btrfs > index eac8270..da2514e 100644 > --- a/Completion/Linux/Command/_btrfs > +++ b/Completion/Linux/Command/_btrfs > @@ -1,7 +1,7 @@ > #compdef btrfs > > local curcontext="$curcontext" curstate state line expl grp cmd ret=1 > -local -a groups args > +local -a groups args cmds_1 cmds_2 cmds_3 cmds_4 cmds_5 cmds_6 > > groups=( subvolume filesystem device scrub balance inspect-internal help version ) > cmds_1=( create delete list snapshot get-default set-default find-new help ) Appears the body part of the email didn't go through, I noticed that after using _btrfs interactively, a few new parameters were created. >>From the testing i did, making them local to the completion script doesn't break anything.