Relative paths in Pod::Html #16140
Sep 10, 2017
When pod2html is given relative paths, especially for --podroot,
$ mkdir /tmp/qq
When I switch to absolute paths, it helps:
$ pod2html --htmldir=out --infile lib/A.pm --outfile out/A.html --podroot `pwd`/lib --podpath .
However, if the current working directory contains a symlink, it again fails:
$ ln -s qq /tmp/pp
It obviously mixes up paths with symlinks resolved and those without.
When I replace `pwd` by $(readlink -f `pwd`), it works again.
Checked with Perl 5.24 on Debian Stretch and the behavior is identical.
Jan 31, 2021
[In quoting the Original Poster above, I changed 'B' to 'C' to avoid a Markdown problem.]
What I think this bug report indicates is a limitation in our test suite for Pod-Html.
The documentation for Pod::Html clearly states:
That suggests that there should be some unit tests in
So we really haven't tested the case where the value provided to
Now, this is a case where, if we changed the documentation, the problem would simply go away. We could say that any value provided to
An additional note: , the value representing the "current working directory" changes depending on how you seek it.
In its code and test suite, Pod-Html use all three variants.
Thank you very much.
Migrated from rt.perl.org#132057 (status was 'new')
Searchable as RT132057$
The text was updated successfully, but these errors were encountered: