From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5483 invoked by alias); 21 Feb 2017 16:56:36 -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: 22480 Received: (qmail 20241 invoked from network); 21 Feb 2017 16:56:36 -0000 X-Qmail-Scanner-Diagnostics: from mta03.eastlink.ca by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(24.224.136.9):SA:0(-0.7/5.0):. Processed in 1.974384 secs); 21 Feb 2017 16:56:36 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW, RP_MATCHES_RCVD,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: rayandrews@eastlink.ca X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.eastlink.ca designates 24.224.136.9 as permitted sender) X-Authority-Analysis: v=2.2 cv=ZvqvEJzG c=1 sm=1 tr=0 a=aWG3ZaPfpGbmBTXoUM+q2Q==:117 a=aWG3ZaPfpGbmBTXoUM+q2Q==:17 a=N659UExz7-8A:10 a=xrVwmIHocN_Q4L7cJnQA:9 a=pILNOxqGKmIA:10 a=7vUXR7S5KJoA:10 X-EL-IP-NOAUTH: 24.207.17.185 Subject: Re: trap ERR To: zsh-users@zsh.org References: <20170221164121.2f832559@pwslap01u.europe.root.pri> From: Ray Andrews Message-id: Date: Tue, 21 Feb 2017 08:56:30 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.6.0 MIME-version: 1.0 In-reply-to: <20170221164121.2f832559@pwslap01u.europe.root.pri> Content-type: text/plain; charset=windows-1252; format=flowed Content-transfer-encoding: 7bit On 21/02/17 08:41 AM, Peter Stephenson wrote: > [Z]ERR and DEBUG are special. If you want to stop them you do so > explicitly. You can append '; trap "" ERR' to the trap, if you want. Ha, that's just what I'm trying now. It seems so ... occult ... but it seems to work. > There's nothing to stop you using $fpath and autoload in a script. Yabut that requires one function per file IIRC. I'll chew on it. Thanks Peter.