On 2011-09-20 22:09:35 +1000, Cam Hutchison wrote: > This can be fixed with a construct like this: > > case "$file" in > *.gz|*.Z) zcat "$file" > "$tmp" ; exec 3< "$tmp" ; rm "$tmp" ; > tmp=/dev/fd/3 ;; > esac > > That is, open the file on fd 3, remove the file and pass /dev/fd/3 as > the fd to xpdf.real. I've tested this with xpdf.real and it works.
Yes, this seems to work (I've tested various functions, such as print, reload and save as). For "reload", I suppose that's fine because xpdf closes the old fd after re-opening the file (let's hope this doesn't change in the future). The only difference I could see is that "Open" starts with the /dev/fd directory instead of $TMPDIR, but I don't think this is a problem, as $TMPDIR wasn't the directory containing the compressed file anyway. -- Vincent Lefèvre <[email protected]> - Web: <http://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon) -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

