[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #48105] function "glob" oddities with trailing
From: |
Mike Miller |
Subject: |
[Octave-bug-tracker] [bug #48105] function "glob" oddities with trailing "/" |
Date: |
Fri, 3 Jun 2016 23:02:56 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:46.0) Gecko/20100101 Firefox/46.0 |
Follow-up Comment #4, bug #48105 (project octave):
And I can confirm if I write a short C program using the standard glob
function, it also fails to return a matching entry for a matched broken
symlink:
#include <glob.h>
#include <stdio.h>
int
main (int argc, char *argv[])
{
glob_t found;
int status;
int i;
status = glob ("foo*", 0, NULL, &found);
printf ("glob returns %d\n", status);
if (status == 0)
for (i = 0; i < found.gl_pathc; i++)
{
printf ("match[%d]: %s\n", i, found.gl_pathv[i]);
}
return 0;
}
While Perl and Python both do return matches for broken symlinks, so they are
working around or reimplementing glob to fix this defect.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?48105>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #48105] function "glob" oddities with trailing "/", anonymous, 2016/06/03
- [Octave-bug-tracker] [bug #48105] function "glob" oddities with trailing "/", Mike Miller, 2016/06/03
- [Octave-bug-tracker] [bug #48105] function "glob" oddities with trailing "/", Rik, 2016/06/03
- [Octave-bug-tracker] [bug #48105] function "glob" oddities with trailing "/", Mike Miller, 2016/06/03
- [Octave-bug-tracker] [bug #48105] function "glob" oddities with trailing "/",
Mike Miller <=
- [Octave-bug-tracker] [bug #48105] function "glob" oddities with trailing "/", Rik, 2016/06/03
- [Octave-bug-tracker] [bug #48105] function "glob" oddities with trailing "/", Mike Miller, 2016/06/03
- [Octave-bug-tracker] [bug #48105] function "glob" oddities with trailing "/", Mike Miller, 2016/06/03
- [Octave-bug-tracker] [bug #48105] function "glob" oddities with trailing "/", Mike Miller, 2016/06/03
- [Octave-bug-tracker] [bug #48105] function "glob" oddities with trailing "/", Rik, 2016/06/04