On Thu, Jul 14, 2005 at 01:09:10PM -0700, Randal L. Schwartz wrote:
> > Just how much documentation of globbing do we want
> > to put in the docs and how much can be "go read X"?  Maybe a 
> > reference to a Unix tutorial on how globbing works?
> 
> Well, if they're on Windows, they don't have "X" for the most part.

There's this new fangled technology called "the web".


> Just a reference doc would be fine:
> 
>         [a-z]
>         *
>         ?       
>         {a,b,c}
>         ~
> 
> etc.  Maybe we can take the BSD manpage (with liberal copyright terms)
> and just insert relevant portions.

There's already this:

       META CHARACTERS

         \       Quote the next metacharacter
         []      Character class
         {}      Multiple pattern
         *       Match any string of characters
         ?       Match any single character
         ~       User name home directory

       The metanotation "a{b,c,d}e" is a shorthand for "abe ace ade".  Left to
       right order is preserved, with results of matches being sorted sepa-
       rately at a low level to preserve this order. As a special case "{",
       "}", and "{}" are passed undisturbed.

but only {} is explicitly explained.  I don't know how much of the rest
need detailed explainations as the terms should already be familiar from
regular expressions.  Maybe that needs to be made explicit?

Anyhow, I don't think File::Glob should cut & paste a man page to explain
file globbing in detail.  Its out of scope.  A reference to a web page will
do a better job.

Know any?


-- 
Michael G Schwern     [EMAIL PROTECTED]     http://www.pobox.com/~schwern
Reality is that which, when you stop believing in it, doesn't go away.
        -- Phillip K. Dick

Reply via email to