On Sun, Nov 15, 2026 at 01:53:43PM +0000, Gavin Smith wrote:
> I suspect that texi2any is a symbolic link although I have no idea where
> the -real suffix comes from.
That is probably it. How about not resetting $real_command_name if
following a link to find Texinfo::ModulePath? I attach a patch that
does that. Something imilar would probably need to be done for
ctexi2any.
--
Pat
diff --git a/tta/perl/texi2any.pl b/tta/perl/texi2any.pl
index cb62e5f904..19521245f9 100755
--- a/tta/perl/texi2any.pl
+++ b/tta/perl/texi2any.pl
@@ -129,7 +129,7 @@ BEGIN
if (-l $0) {
my $followed = readlink($0);
if ($followed) {
- ($real_command_name, $command_directory, $command_suffix)
+ (undef, $command_directory, $command_suffix)
= fileparse($followed, '.pl');
unshift @INC, $command_directory;
eval { require Texinfo::ModulePath; };