It looks to me like a bug.
Your expectation of the expansion looks correct to me, and on Linux I
get the behaviour that you wanted from /bin/bash, /bin/sh (links to
bash) and /bin/csh (links to /bin/tcsh).
It is remotely possible that there is some "real" csh that disagrees,
but if so then I'd still prefer the behaviour that you want. (Tom
Christensen would, of course, disagree.)
Cheers,
Ben
On 2/22/07, Kripa Sundar <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> Is this a glob() bug, or am I overlooking something obvious?
> "perldoc -f glob" didn't help. TIA.
>
> The ".[0-9]*[0-9]" is globbed correctly when it is not
> inside braces.
>
> > % touch a ab abcd a.777
> > %
> > % perl -le \
> > 'print for glob("a{,b,b*d,.[0-9]*[0-9]}"), "---", glob("a.[0-9]*[0-9]")'
> > a
> > ab
> > abcd
> > ---
> > a.777
> > %
> > % perl -v | g v5
> > This is perl, v5.8.3 built for x86_64-linux
> > %
>
> peace, || Ben Cohen tells us about Oreo cookies:
> --{kr.pA} || http://www.truemajorityaction.org/oreos/
> --
> Ignorance is bliss. Zen contra-positive: Suffering is knowledge.
>
> _______________________________________________
> Boston-pm mailing list
> [email protected]
> http://mail.pm.org/mailman/listinfo/boston-pm
>
_______________________________________________
Boston-pm mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/boston-pm