From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20556 invoked from network); 22 Nov 2000 06:53:03 -0000 Received: from sunsite.dk (HELO sunsite.auc.dk) (130.225.51.30) by ns1.primenet.com.au with SMTP; 22 Nov 2000 06:53:03 -0000 Received: (qmail 1672 invoked by alias); 22 Nov 2000 06:52:43 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 13179 Received: (qmail 1664 invoked from network); 22 Nov 2000 06:52:41 -0000 X-Envelope-Sender-Is: Andrej.Borsenkow@mow.siemens.ru (at relayer david.siemens.de) From: "Andrej Borsenkow" To: "Glenn F. Maynard" , Subject: RE: xterm title/screen title+hardstatus Date: Wed, 22 Nov 2000 09:52:37 +0300 Message-ID: <000201c05450$cc99eb10$21c9ca95@mow.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.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Importance: Normal In-Reply-To: <20001121145838.A2755@h0040333b7dc3.ne.mediaone.net> > > I've been trying to solve the problems with getting reliable titles and > hardstatus lines (for screen). > Every now and then I thought about it and always failed to find reliable solution. > Two major problems: dealing with all input lines, and following processes > around when job switching. > > The first is the more difficult one. I couldn't get tcsh or bash to do > this; zsh has come the closest. In particular, there're issues with > dealing with commands containing single quotes, double quotes, both nested, > and escaping. It is worse than just quoting. You have to deal with pipelines and complex commands. Consider: bor@itsrm2% preexec() { print $1 > /tmp/foo } bor@itsrm2% while false while> do while> print x while> done bor@itsrm2% cat /tmp/foo while false do print x done That was the main reason I never came up with any solution. [...] -andrej