From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25270 invoked from network); 10 Feb 2006 20:11:20 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) 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.0 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 10 Feb 2006 20:11:20 -0000 Received: (qmail 96741 invoked from network); 10 Feb 2006 20:11:09 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 10 Feb 2006 20:11:09 -0000 Received: (qmail 16074 invoked by alias); 10 Feb 2006 20:11:03 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9907 Received: (qmail 16063 invoked from network); 10 Feb 2006 20:11:02 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 10 Feb 2006 20:11:02 -0000 Received: (qmail 95834 invoked from network); 10 Feb 2006 20:11:02 -0000 Received: from mail.gmx.net (213.165.64.21) by a.mx.sunsite.dk with SMTP; 10 Feb 2006 20:11:01 -0000 Received: (qmail invoked by alias); 10 Feb 2006 20:11:00 -0000 Received: from p5492E2E8.dip.t-dialin.net (EHLO localhost) [84.146.226.232] by mail.gmx.net (mp037) with SMTP; 10 Feb 2006 21:11:00 +0100 X-Authenticated: #15650693 Date: Fri, 10 Feb 2006 21:11:00 +0100 From: Christian Schneider To: zsh-users@sunsite.dk Subject: Re: Context for multiline commands Message-ID: <20060210201100.GG7173@painless.my-fqdn.de> Mail-Followup-To: zsh-users@sunsite.dk References: <200602101459.43249.jfh@cise.ufl.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <200602101459.43249.jfh@cise.ufl.edu> X-GPG-Key: gpg --recv-keys --keyserver wwwkeys.eu.pgp.net 47E322CE X-PGP-Fingerprint: 0095 C0F5 C03D 776A F585 0A46 4B6F 1932 47E3 22CE Organization: Born to frag. X-Shell: zsh 4.2.6 (i686-pc-linux-gnu) X-Now-Playing: Beatallica - Hey Dude (radio edit) User-Agent: Mutt/1.5.11 X-Y-GMX-Trusted: 0 * James F. Hranicky typed: > The version of zsh I have installed on my Solaris machines keeps > the context for multiline commands to help me remember where I am: > > for i in * ; do > for> if [ "$i" = "0" ] ; then > for then> > > However, on my SuSE 9.3 machines this seems to be disabled > > for i in * ; do > > if [ "$i" = "0" ] ; then > > > > anyone know what the directive is to enable this behavior? That's ``PS2''; default is "%_> " ,---- | painless% echo $PS2 | %_> | painless% for i in {1..2} ; do | for> echo $i | for> done | 1 | 2 | painless% PS2="> " | painless% for i in {1..2} ; do | > echo $i | > done | 1 | 2 | painless% `---- -- Feel free to contact me (flames about my english and the useless of this driver will be redirected to /dev/null, oh no, it's full...). -- Michael Beck, describing the PC-speaker sound device