From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22114 invoked from network); 14 Jan 2003 05:17:33 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 14 Jan 2003 05:17:33 -0000 Received: (qmail 15145 invoked by alias); 14 Jan 2003 05:17:24 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 5704 Received: (qmail 15137 invoked from network); 14 Jan 2003 05:17:23 -0000 From: "Bart Schaefer" Message-Id: <1030114051657.ZM23688@candle.brasslantern.com> Date: Tue, 14 Jan 2003 05:16:57 +0000 In-Reply-To: <15907.13339.279982.418887@fisica.ufpr.br> Comments: In reply to Carlos Carvalho "Re: how to search for a substring in a parameter?" (Jan 13, 7:48pm) References: <15907.432.363150.443412@fisica.ufpr.br> <8728.1042482778@csr.com> <15907.13339.279982.418887@fisica.ufpr.br> X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-users@sunsite.dk Subject: Re: how to search for a substring in a parameter? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Jan 13, 7:48pm, Carlos Carvalho wrote: } } % if [[ $bar == <1-$max> ]] {print in } else {print out} } zsh: parse error: condition expected: $bar } } Is it illegal to have parameters inside <-> ...? Yes. Do it this way: range='<1-8>' if [[ $bar == ${~range} ]] {print in} else {print out}