From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11472 invoked from network); 19 Sep 2006 16:23:22 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.5 (2006-08-29) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 19 Sep 2006 16:23:22 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 7644 invoked from network); 19 Sep 2006 16:23:16 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 19 Sep 2006 16:23:16 -0000 Received: (qmail 24037 invoked by alias); 19 Sep 2006 16:23:13 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 22741 Received: (qmail 24027 invoked from network); 19 Sep 2006 16:23:12 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 19 Sep 2006 16:23:12 -0000 Received: (qmail 7166 invoked from network); 19 Sep 2006 16:23:12 -0000 Received: from flock1.newmail.ru (80.68.241.157) by a.mx.sunsite.dk with SMTP; 19 Sep 2006 16:23:11 -0000 Received: (qmail 7580 invoked from network); 19 Sep 2006 16:23:07 -0000 Received: from unknown (HELO cooker.local) (arvidjaar@newmail.ru@83.237.195.79) by smtpd.newmail.ru with SMTP; 19 Sep 2006 16:23:07 -0000 From: Andrey Borzenkov To: zsh-workers@sunsite.dk Subject: set - $foo resets set -x Date: Tue, 19 Sep 2006 20:23:06 +0400 User-Agent: KMail/1.9.4 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200609192023.06736.arvidjaar@newmail.ru> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Well, specifically debugging completion functions you do not actually have control over it; functions just appear to return out of the middle without any apparent reason. It looks intentional: /* Obsolescent sh compatibility: set - is the same as set +xv * * and set - args is the same as set +xv -- args */ if (*args && **args == '-' && !args[0][1]) { dosetopt(VERBOSE, 0, 0); dosetopt(XTRACE, 0, 0); if (!args[1]) return 0; } Anyone remembers the reasons for that? May be we can at least relax it if running in emulate zsh mode? - -andrey -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQFFEBlqR6LMutpd94wRAuFZAJ9chUUsudM6P+tygd3Vc0WJf4UOoQCfZcid tTH42YOo9iY1UML8TdDZgWs= =XjoF -----END PGP SIGNATURE-----