From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28956 invoked by alias); 27 May 2011 04:28:00 -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: 29389 Received: (qmail 15517 invoked from network); 27 May 2011 04:27:58 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at closedmail.com does not designate permitted sender hosts) From: Bart Schaefer Message-id: <110526212741.ZM504@torch.brasslantern.com> Date: Thu, 26 May 2011 21:27:41 -0700 In-reply-to: <1306459214-17564-1-git-send-email-mikachu@gmail.com> Comments: In reply to Mikael Magnusson "[PATCH] add and use _comp_original_options" (May 27, 3:20am) References: <1306459214-17564-1-git-send-email-mikachu@gmail.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: Re: [PATCH] add and use _comp_original_options MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On May 27, 3:20am, Mikael Magnusson wrote: } } ... completion code always has extendedglob set. I came up with this } to work around it, This seems quite reasonable. Just for pedantry I think I'd have named the variable "_comp_caller_options" but it hardly matters. } Is it safe to use $options, or do I have to check if the parameters } module is available? If zsh/parameter is available, referencing $options will autoload it, so it's safe in that sense, but if the module is not available there's nothing to guarantee that it has a sensible value. On the other hand several completions rely on $commands springing into existence when referenced, or do "compadd -k builtins", so ...