From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24717 invoked from network); 13 Mar 2004 17:51:29 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 13 Mar 2004 17:51:29 -0000 Received: (qmail 10453 invoked by alias); 13 Mar 2004 17:51:10 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7170 Received: (qmail 10417 invoked from network); 13 Mar 2004 17:51:09 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 13 Mar 2004 17:51:09 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [80.91.224.249] by sunsite.dk (MessageWall 1.0.8) with SMTP; 13 Mar 2004 17:51:8 -0000 Received: from root by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1B2DHr-0006si-00 for ; Sat, 13 Mar 2004 18:51:03 +0100 Received: from isi-dialin-129-193.isionline-dialin.de ([195.158.129.193]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 13 Mar 2004 18:51:03 +0100 Received: from thorsten by isi-dialin-129-193.isionline-dialin.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 13 Mar 2004 18:51:03 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@sunsite.dk From: Thorsten Kampe Subject: Re: Justifying text output Date: Sat, 13 Mar 2004 18:48:36 +0100 Message-ID: <1iqtnm45dkqid.dlg@thorstenkampe.de> References: <1mm7og67rpkdy.dlg@thorstenkampe.de> <1040312105556.ZM22295@candle.brasslantern.com> <16tfmamy8a3c9.dlg@thorstenkampe.de> <1040313062454.ZM28736@candle.brasslantern.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: isi-dialin-129-193.isionline-dialin.de User-Agent: 40tude_Dialog/2.0.10.1de Sender: news * Bart Schaefer (2004-03-13 07:24 +0100) > On Mar 13, 12:24am, Thorsten Kampe wrote: > } Subject: Re: Justifying text output > } > } * Bart Schaefer (2004-03-12 11:55 +0100) > } > > } > echo ${(r:70:):-"${ltgreen}* ${white}compiling $file"}"[ ${ltgreen}ok ${white}]" > } > } I'm sorry but that outputs something like this: > } * [ ok ] compiling [ ok ] [ ok ] > > I think you must have gotten some double-quotes or curly-braces in the > wrong place, somehow. Or something. > > schaefer[501] file=somerandomstring > schaefer[502] echo ${(r:70:):-"${ltgreen}* ${white}compiling $file"}"[ ${ltgreen}ok ${white}]" > * compiling somerandomstring [ ok ] > schaefer[503] I figured it out: "setopt shwordsplit" made the "extra spaces" and "setopt rcexpandparam" made the multiple "[ ok ]". Please advise if setting them makes sense - meaning making the life of a zsh non-expert easier or more difficult. Thorsten