From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23831 invoked from network); 5 Jul 2001 05:34:38 -0000 Received: from unknown (HELO sunsite.dk) (130.225.51.30) by ns1.primenet.com.au with SMTP; 5 Jul 2001 05:34:38 -0000 Received: (qmail 16617 invoked by alias); 5 Jul 2001 05:32:44 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 15251 Received: (qmail 16606 invoked from network); 5 Jul 2001 05:32:43 -0000 X-Envelope-Sender-Is: Andrej.Borsenkow@mow.siemens.ru (at relayer goliath.siemens.de) From: "Andrej Borsenkow" To: "ZSH Workers Mailing List" Subject: Debugging of dynamocally defined functions Date: Thu, 5 Jul 2001 09:33:28 +0400 Message-ID: <000001c10514$04fa4580$21c9ca95@mow.siemens.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2479.0006 Importance: Normal Trying to debug one problem I had to look at set -x output of compinit. The last line was compdef:101:... It turned out, there is no way to find correct place. compdef is itself defined in compinit, and has comments. which compdef produces source without comments and line numbers do not match. Honestly speaking, I never liked it (function defining other functions that is); why not simply have them autoloaded is beyond me. -andrej