From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27350 invoked by alias); 26 Jul 2011 19:09:43 -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: 29613 Received: (qmail 24973 invoked from network); 26 Jul 2011 19:09:32 -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=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.220.171 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=Ap8Q/fSoCjpOVMwtIGu0Jj0fwYmtUhfQS92B0Ud5j9E=; b=oJ62Fzt3DrdefuxZw3H9I/rOFLvp9Y8IsVTN8yJxJHyTnnzfK4AkxLUVLM42DO2PQH CvgQrXe30x3tm0CVwDNtM4pFcwn+TjqEkv1O1nrYwofOqodHRoz3cGqwJlqFFpIDVsvo 4C0dbc9sbKBSoztBjmdJcLIUKRoGLjNIVq7Us= MIME-Version: 1.0 Date: Tue, 26 Jul 2011 21:09:22 +0200 Message-ID: Subject: completers using zstat don't work with zmodload -F zsh/stat From: Mikael Magnusson To: zsh workers Content-Type: text/plain; charset=UTF-8 umount for example tells me _canonical_paths_add_paths:6: no such builtin: stat The weird part is the completer uses zstat explicitly and doesn't mention \ anywhere except in its zmodload line. The actual line I'm using is zmodload -aF zsh/stat -b:stat b:zstat, but it breaks the same with just -F and no b:*. If I zmodload zsh/stat and then 'disable stat' it also breaks. I just got the idea to 'which' the function, and indeed all the zstat are magically replaced with 'builtin stat', which explains the trouble. Why does that happen though? -- Mikael Magnusson