From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29402 invoked from network); 30 Mar 1999 07:58:15 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 30 Mar 1999 07:58:15 -0000 Received: (qmail 792 invoked by alias); 30 Mar 1999 07:57:03 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 2258 Received: (qmail 785 invoked from network); 30 Mar 1999 07:57:02 -0000 From: "Andrej Borsenkow" To: Subject: RE: Updating the Xterm title with every execution? Date: Tue, 30 Mar 1999 11:56:09 +0400 Message-ID: <000201be7a82$c5b3baa0$21c9ca95@mowp.siemens.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-reply-to: <990329202514.ZM16609@candle.brasslantern.com> X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Importance: Normal > } > } > The color in expansions is a cool idea, but I'm wondering what the > } > first half of the patch can do that preexec can't? > } > } Please correct me if I'm wrong, but I don't think 'preexec' exists in > } Zsh 3.0.5 > > It's in 3.0.5-ext-2, available from ftp.brasslantern.com:/pub/zsh/, which > will be the basis of 3.0.6 appearing (I hope, if I get the archive scripts > learned soon) sometime this month. > I'd just like to point out, that setting title to the command name/parameters is probably not trivial. preexec gets the whole command line (at least,as long as I can beleive the manual. Are parameter assignments included?). It means, that in case of some more or less complex things (braces, pipelines etc) you have to parse the string again ... and, well, you can even have redirection as the first word on command line :-) cheers /andrej