[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#174987: current xdvi-pl depends on perl-5.8



>> On Tue, 4 Feb 2003 00:20:17 -0500
>> ken@digitas.harvard.edu (Ken Shan) said as follows:

>Absolutely!  I have some very minor suggestions though:

>I would prefer for xdvi.bin to be invoked on a file in /dev/fd rather
>than a "real" file name, so that we do not rely on the user to set
>TMPDIR to a sane value.  (It is also more consistent with how gzip is
>invoked.)  Making this change means that we no longer need a file name
>for the temporary file, so $tmpname and UNLINK can go away.  Finally,
>DIR is tmpdir by default, so we can simply omit it and File::Spec.

>Since multiple versions of this script are being sent around, and it is
>not very big, I am attaching my revised version.  The code as well as my
>suggestions are based only on perl 5.8, though, so it would be great to
>check with a pre-5.8 perl.

Unfortunately, your revised script does not work with perl-5.6.1 on my
woody system.  It said as follows:

    $ perl xdvi sample.dvi.bz2 
    Error unlinking file tetex5w5Xc1.dvi using unlink0 at xdvi line 66

I think that perl-5.6.1 could not make any temporary file handles
under /dev/fd.

-- 
TSUCHIYA Masatoshi



Reply to: