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

Bug#219156: tetex-bin: postinst script fails to run texconfig under dash



On 04.11.03 Michel Casabona (michel.casabona@free.fr) wrote:

Hi all,

> "texconfig init" fails when called by tetex-bin.postinst, run under
> ash/dash. There is no problem when /bin/sh points to bash.
> 
> 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) :
> 
Anybody able to reproduce that?
I installed dash in my chroot-testing and pointed /bin/sh to
/bin/dash, but couldn't cause him to fail. /bin/ash should be just a
symlink to /bin/dash and I don't know, if it behaves differently,
when called as /bin/dash.
I tested it only with tetex-bin_2.0.2-4.1 but I think that shouldn't
make much difference.

Hilmar 
-- 
sigmentation fault



Reply to: