From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5974 invoked by alias); 28 Aug 2015 06:40:16 -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: 36312 Received: (qmail 28975 invoked from network); 28 Aug 2015 06:40:15 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=8mv33D5G0QjTZm9SnxlLEMsppQgXbuky4jLFhAjSQcI=; b=nLKdMCK7/vnC0tSy4N/VPkoOyo5mStz6/JwV0LpZi/Z1xcaSKCWiv5PXvUhk/IC7WQ kULndc9KtzS+8xCLTW2h2o/+yFKRtcSJgMqy8ee2+BSVXUBwalIVnNspks8logtbHS+D x2g02B5N8OtgYV54ECOjmMGpM9t0X4ZM+FHd+1F47oZNjGKz8Re+wSFIHSkZqx7d/2BY PcGfC57v5fZle4c8BVKvncQEGjNTslgm+At5Dt2DlAyY//N8HWvlTfXh3KCywxc2+Dn3 geHfbGPQ8dDaP115lwiFjUPaNOgcUQOrAUh1L5rx2VEFEwzqCAFzMCugKW/pmezSShOh noWg== X-Received: by 10.112.163.102 with SMTP id yh6mr4022989lbb.54.1440744012209; Thu, 27 Aug 2015 23:40:12 -0700 (PDT) MIME-Version: 1.0 From: Sebastian Gniazdowski Date: Fri, 28 Aug 2015 08:39:52 +0200 Message-ID: Subject: Zsh will not parse an autoload function when it has short loops To: zsh-workers@zsh.org Content-Type: multipart/alternative; boundary=089e011832960f6519051e595b27 --089e011832960f6519051e595b27 Content-Type: text/plain; charset=UTF-8 Hello I've created autoload function "bug" in /usr/share/zsh/.../functions, and when run, it gives: bug:9: parse error near `list[$i]' Adding echo's to the file and changing various things revealed no reaction. This means that the file isn't actually run by zsh - apparently the message comes from some initial parsing stage. Here is the file: emulate -L zsh setopt localoptions typesetsilent localtraps extendedglob shortloops while (( 1 )); do # No influence, the code isn't run at all # typeset -a VLIST_NONSELECTABLE_ELEMENTS if [ ! -z "$VLIST_SEARCH_BUFFER" ]; then [ "$#VLIST_NONSELECTABLE_ELEMENTS" -gt 0 ] && for i ("${(nO)VLIST_NONSELECTABLE_ELEMENTS[@]}") list[$i]=() fi done --089e011832960f6519051e595b27--