Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: bsd_glob returns non-existent files without GLOB_NOMAGIC (default)

by Anonymous Monk
on Apr 10, 2013 at 23:05 UTC ( [id://1028050]=note: print w/replies, xml ) Need Help??


in reply to bsd_glob returns non-existent files without GLOB_NOMAGIC

What am I missing?

You're missing flags, so the default is used

The default, GLOB_CSH, includes GLOB_NOCHECK

  • Comment on Re: bsd_glob returns non-existent files without GLOB_NOMAGIC (default)

Replies are listed 'Best First'.
Re^2: bsd_glob returns non-existent files without GLOB_NOMAGIC (default)
by LanX (Saint) on Apr 10, 2013 at 23:20 UTC
    > The default, GLOB_CSH, includes GLOB_NOCHECK

    almost, its GLOB_NOMAGIC

    "GLOB_CSH"
               For convenience, "GLOB_CSH" is a synonym for "GLOB_BRACE |
               GLOB_NOMAGIC | GLOB_QUOTE | GLOB_TILDE | GLOB_ALPHASORT".
    
    ...

    "GLOB_NOMAGIC"
               Same as "GLOB_NOCHECK" but it only returns the pattern if it does
               not contain any of the special characters "*", "?" or "[".
               "NOMAGIC" is provided to simplify implementing the historic csh(1)
               globbing behaviour and should probably not be used anywhere else.
    

    Cheers Rolf

    ( addicted to the Perl Programming Language)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1028050]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-04-19 03:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found