[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 22:48:13 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:46.0) Gecko/20100101 Firefox/46.0 |
Follow-up Comment #3, bug #48105 (project octave):
At least on my system, the reason gnulib's own glob function is used is the
following:
configure:61153: checking whether glob lists broken symlinks
configure:61192: gcc -o conftest -g -O2 -pthread -fopenmp conftest.c -lutil
-lm >&5
configure:61192: $? = 0
configure:61192: ./conftest
configure:61192: $? = 1
configure: program exited with status 1
[…]
configure:61203: result: no
This defect means that gnulib's glob is enabled. Our logic in Octave also
unconditionally uses gnulib::glob, so we are currently assuming that it's
always enabled.
I didn't know what this test actually means until I looked into it. The gnulib
test creates a broken symlink to a non-existent file, then calls glob with a
pattern that matches the symlink. If glob returns GLOB_NOMATCH, then it is
considered to be broken and gnulib's replacement function is used. I don't
know the history of this or on which systems it actually works, if it's
something they're trying to get rolled into glibc, etc.
_______________________________________________________
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 <=
- [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, 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