From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17127 invoked from network); 13 Jan 2003 21:48:32 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 13 Jan 2003 21:48:32 -0000 Received: (qmail 20009 invoked by alias); 13 Jan 2003 21:48:19 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 5699 Received: (qmail 20001 invoked from network); 13 Jan 2003 21:48:18 -0000 From: Carlos Carvalho MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <15907.13339.279982.418887@fisica.ufpr.br> Date: Mon, 13 Jan 2003 19:48:11 -0200 To: zsh-users@sunsite.dk Subject: Re: how to search for a substring in a parameter? In-Reply-To: <8728.1042482778@csr.com> References: <15907.432.363150.443412@fisica.ufpr.br> <8728.1042482778@csr.com> X-Mailer: VM 7.07 under Emacs 19.34.1 Sorry for making noise with such an easy question... I even found the answer myself some time later but you were too fast in answering for me to tell it. Anyway I now understand the meaning of M, thanks. Fascinated by that part of the man page I tried the following: % max=8 % bar=5 % if [[ $bar == <1-$max> ]] {print in } else {print out} zsh: parse error: condition expected: $bar It works if I change $max by 8. Is it illegal to have parameters inside <-> or I'm doing it wrong? The man page is a little ambiguous.