Name of temporary files causes erratic behaviour

Christian Marillat marillat.christian@wanadoo.fr
Fri Dec 20 19:23:00 GMT 2002


Hi,

http://bugs.debian.org/171985

/usr/share/sgml/docbook/utils-0.6.12/backends/dvi contains this part:

-----------------------------------------------------------------------------
[...]
# Convert from TeX to DVI
jadetex ${SGML_FILE_NAME}.tex >${SGML_FILE_NAME}.out
if [ $? -ne 0 ]
then
  cat ${SGML_FILE_NAME}.out
  rm ${SGML_FILE_NAME}.out
  rm ${SGML_FILE_NAME}.tex
  exit 2
fi
rm ${SGML_FILE_NAME}.out
[...]
-----------------------------------------------------------------------------

Since (jade)tex for some reason uses the foo.out file for itself, tex
tries to read it and unsurprisingly stumbles over it, since this dvi
script redirects log output to it (line 2 above).

The erratic behaviour goes away immediately if I replace all '.out'
occurences in the dvi script by something else, e.g. '.out1'.



More information about the Docbook-tools-discuss mailing list