#1041294 xindy mishandles funny filenames

Package:
xindy
Source:
xindy
Description:
index generator for structured documents like LaTeX or SGML
Submitter:
Zefram
Date:
2023-07-17 00:27:04 UTC
Severity:
normal
#1041294#5
Date:
2023-07-17 00:22:56 UTC
From:
To:
xindy(1) does various funny things if a filename contains characters
that are not usually used in filenames:

$ touch '>t0'
$ ls -l
total 0
-rw-rw-r-- 1 zefram zefram 0 Jul 17 01:21 '>t0'
$ xindy '>t0' 2>/dev/null
$ ls -l
total 0
-rw-rw-r-- 1 zefram zefram 0 Jul 17 01:21 '>t0'
-rw-rw-r-- 1 zefram zefram 0 Jul 17 01:21  t0
$ touch '|echo wibble'
$ xindy '|echo wibble' 2>/dev/null
wibble
$

These arise from its use of the <> Perl operator, which is not suitable
for the implementation of a read-from-list-of-files kind of command.
Because the range of misbehaviour includes writing to arbitrary files
and running arbitrary commands, this is a more severe bug than normal.