As promised, here's my cleaned up series for http://debbug.gnu.org/10472
I'm not sure whether to squash 2 and 3 into one patch.
I'm not sure whether we want patch 6/6, so I documented the current
behavior in 5/6; if we want both, then it's best to squash the two
together (that is, effectively get rid of 5/6).
I've tested this on both Linux and Cygwin, to ensure that things behave
regardless of whether // is special or just an alias for /.
Eric Blake (6):
test: expose recent gnulib canonicalize bug
realpath: fix problems with root handling
tests: cover more realpath scenarios
realpath: let --relative-to default to --relative-base
doc: clarify current realpath --relative-base behavior
realpath: let --relative-base work even as child of --relative-to
NEWS | 10 +++++
doc/coreutils.texi | 8 +++-
src/realpath.c | 41 ++++++++++++++------
tests/Makefile.am | 1 +
tests/misc/readlink-root | 92 ++++++++++++++++++++++++++++++++++++++++++++++
tests/misc/realpath | 68 ++++++++++++++++++++++++++++++----
6 files changed, 198 insertions(+), 22 deletions(-)
create mode 100755 tests/misc/readlink-root
--
1.7.7.6