This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/5103] still one (rather minor) issue with escaping in glob.


------- Additional Comments From madcoder at debian dot org  2007-10-07 14:37 -------
(In reply to comment #1)
> What you describe are no valid uses of glob.  There is one parameter to 
many. 
> Correct the description.

Err of course, the "%d\n" are spurious... sorry.

Doesn't work:
  glob("\\/*", 0, 0, &buf)   /* should match /bin, /usr, ... */
  glob("\\/???", 0, 0, &buf) /* should match /bin, /usr, ... */
  glob("\\/??n", 0, 0, &buf) /* should match /bin */
Works:
  glob("\\/bin/*", 0, 0, &buf)
  glob("/\\/*", 0, 0, &buf)

So I assume the issue is with a pattern begining with "\\/" directly followed 
by a globbing char.

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=5103

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]