[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: POSIX scripting tip



Herbert Xu <herbert@gondor.apana.org.au> writes:

> Philip Brown <phil@bolthole.com> wrote:
> >
> > If you have files
> > fiftyfive fiftyfour fiftyone fiftysix fiftythree fiftytwo
> 
> > $ ls fifty?(one|f*)
> 
> > will result in
> 
> > fiftyfive   fiftyfour   fiftyone
> 
> Really? When did that one sneek in?

It doesn't seem to have sneaked in at all. In bash:

$ touch ffive ffour fone fsix fthree ftwo
$ ls
ffive  ffour  fone  fsix  fthree  ftwo
$ ls f?(one|f*)
bash: syntax error near unexpected token `f?(o'
$ 

Am I missing something? Does some part of this need to be escaped?

--Miguel



Reply to: