From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3276 invoked by alias); 17 Sep 2015 15:54:16 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 20573 Received: (qmail 16853 invoked from network); 17 Sep 2015 15:54: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=-1.9 required=5.0 tests=BAYES_00,T_HDRS_LCASE, T_MANY_HDRS_LCASE autolearn=ham autolearn_force=no version=3.4.0 X-Authority-Analysis: v=2.1 cv=T/C1EZ6Q c=1 sm=1 tr=0 a=zebyiQhrbmDl3XZzCDMMUg==:117 a=zebyiQhrbmDl3XZzCDMMUg==:17 a=IkcTkHD0fZMA:10 a=ZlbdjUgqBFoQ-TsXdxMA:9 a=QEXdDO2ut3YA:10 Message-id: <55FAE223.2080502@eastlink.ca> Date: Thu, 17 Sep 2015 08:54:11 -0700 From: Ray Andrews User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Icedove/31.7.0 MIME-version: 1.0 To: Zsh Users Subject: autoload Content-type: text/plain; charset=utf-8; format=flowed Content-transfer-encoding: 7bit Bart: I did this, which should be verbatim as you posted: # Assume starting here with the default $fpath zsh_default_functions=~/.zsh-default-functions.zwc if ! zcompile -t $zsh_default_functions >&/dev/null then # File is missing or out of date. Rebuild it. # Removes the file if any function cannot be compiled. zcompile $zsh_default_functions $^fpath/*(N.:A) fi if [[ -f $zsh_default_functions ]] then fpath=( $zsh_default_functions ) autoload -w $zsh_default_functions fi ... and I get: /aWorking/Zsh/Boot/ztest:5: parse error near `)' /aWorking/Zsh/Boot/ztest:zcompile:10: can't read file: /usr/share /zsh/functions/Completion /Base.zwc ('ztest' being sourced by .zshrc and where I do experiments.) 'Base.zwc' exists: $ ls -l Base.zwc -rw-r--r-- 1 root root 269472 Aug 31 16:26 Base.zwc ... and "zcompile -t Base.zwc" doesn't report anything amiss. The " parse error near `)' " msg. is puzzling since it always reports line 5 regardless of anything added above it ,eg: "echo "this echo is only here to add a line of code"". For example if I modify your code like this: line5 # Assume starting here with the default $fpath zsh_default_functions=~/.zsh-default-functions.zwc line9 ... I get this: /aWorking/Zsh/Boot/ztest:5: command not found: line5 /aWorking/Zsh/Boot/ztest:9: command not found: line9 /aWorking/Zsh/Boot/ztest:5: parse error near `)' /aWorking/Zsh/Boot/ztest:zcompile:14: can't read file: /usr/share /zsh/functions/Completion/Base.zwc ... so the deliberate errors are as expected, yet she insists on finding an `)' error on line 5 as well, and that after having reached line 9, so I have no idea how to understand that.