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

Bug#395274: bashism in postinst breaks installation/upgrade



Florent Rougon <f.rougon@free.fr> wrote:

> Hi,
>
> Frank Küster <frank@debian.org> wrote:
>
>> However, the bashism is in an if-clause, and I'm not sure whether the
>> shell finds a syntax error while reading the file, or only if it
>> actually gets there.  If it does get there, this means the postinst
>> script was just about to tell you that it will now exit with an error:
>> You should check the files in /etc/texmf/texmf.d, in particular those
>> with an *.ucf-dist cousin:  You refused to accept some mandatory changes
>> to configuration files.
>
> Umm, I fear this is not the case. 

You seem to fear things that I think are good ;-) This just means that
Michael's system is fine, and my knowledge of shell is not.  I assumed
that

#!/bin/dash

foo="bar baz bumm"

if false; then
  newfoo=${foo//b/}
fi

echo $newfoo

would not give a syntax error.  It does.

Regards, Frank
-- 
Dr. Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX/TeXLive)



Reply to: