Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Does zsh have an equivalent to the shopt command ?
- X-seq: zsh-users 10534
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Does zsh have an equivalent to the shopt command ?
- Date: Thu, 20 Jul 2006 10:47:19 +0100
- In-reply-to: <20060719180657.GA7276@princo>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organization: Cambridge Silicon Radio
- References: <96c45c490607190944n5dabb6acwffe9f4255f9a0d7@xxxxxxxxxxxxxx> <20060719180657.GA7276@princo>
Jean-Rene David <jrdavid@xxxxxxxx> wrote:
> * Sean [2006.07.19 12:45]:
> > zsh chokes on this line in a script:
> >
> > shopt -s extglob
> >
> > Is there an alternative for use in zsh ?
>
> setopt extendedglob
However, the globbing syntax enabled by bash's extglob option is the
ksh-style with parentheses introduced by ?, @, *, + or !. If you need
this syntax in zsh, you should "setopt kshglob".
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070
To access the latest news from CSR copy this link into a web browser: http://www.csr.com/email_sig.php
Messages sorted by:
Reverse Date,
Date,
Thread,
Author