On Friday, 14 September 2001 11:48, Guenter Milde wrote:
> Use the eps2eps script from my recent reply to the list ...
>
> Guenter
The script eps2eps has an annoying side effect. It deletes your files.
if ...
TMP=`mktemp /tmp/eps2eps.XXXXXX`
...
else
...
fi
...
trap "rm $TMP* 2>/dev/null" 0
If you don't have 'mktemp' available, or if you run the script with
two arguments, TMP will be empty, the argument to 'rm' will evaluate
to * and all your files in the current directory will be deleted.
The setting of TMP should be outside the if-statement, and the script
should check for the existence of 'mktemp' or something similar.
--Ulrik Sandberg