Bug#219156: tetex-bin: postinst script fails to run texconfig under dash
On 04.11.03 Michel Casabona (michel.casabona@free.fr) wrote:
Hi Michel,
> "texconfig init" fails when called by tetex-bin.postinst, run under
> ash/dash. There is no problem when /bin/sh points to bash.
>
Just curious: are you able to reproduce the problem using Debian
unstable and texlive-binaries? Remember: the problem is only
reproducible when using eterm.
> The problem occurs in the check_environ() procedure while parsing
> $envvars, and seems to be caused by the variable contents split on
> multiple lines (contains embedded "newline").
>
> IFS is changed by the postinst script not to include "newline"
> before texconfig is called. bash and dash seem to behave
> differently on word expansion wrt IFS (dunno which one is posixly
> correct ;)
>
> A simple patch to save/restore IFS in the postinst script seemed to
> cure the problem (note that texconfig does the same) :
>
Thanks,
Hilmar
--
sigmentation fault
Reply to: