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

Bug#249597: texmf: Leaves spurious tempfiles around



On 21.05.04 Jeroen van Wolffelaar (jeroen@wolffelaar.nl) wrote:
> On Fri, May 21, 2004 at 10:58:10AM +0200, Hilmar Preusse wrote:

Hi,

> > How about:
> > 
> > if `fmtutil --all >> $TEMPFILE`; then rm $TEMPFILE; else echo -e \
> > "\nSomething went wrong. Output of initex is in $TEMPFILE."; fi
> > 
> > Don't know, how bash-specific that is.
> 
> I'm not sure about the bash-specificness of -e, but it isn't
> needed. I don't think you need newlines, and even if so, simply use
> two echo statement.
> 
OK, thanks.

> But your code layout is a bit suboptimal (you can do linebreaks in if's
> like I showed),
> 
I just wanted to write comapct code. We can reformat later.

> and it's wrong in that you now try to execute the output for
> fmtutil --all. You should drop the backtics, if takes a command to
> test for exit status.
> 
Thanks.

Finally:

if fmtutil --all >> $TEMPFILE; then
	rm $TEMPFILE
else
	echo; echo "Something went wrong. Output of initex is in $TEMPFILE."
fi
 
-- 
sigmentation fault



Reply to: