Bug#288182: Why do we not reset IFS? (was: Bug#288182: tetex-bin postinst fails when calling fmtutil)

2005-01-15 Thread Attila Kinali
On Tue, 11 Jan 2005 14:23:39 +0100 Frank KÃster <[EMAIL PROTECTED]> wrote: > Using dash as /bin/sh and working in an > eterm lead to the problem last time I encountered it; probably if you > switch to a real console or point /bin/sh to /bin/bash, you can > configure tetex-bin. That's exactly what

Bug#288182: Why do we not reset IFS? (was: Bug#288182: tetex-bin postinst fails when calling fmtutil)

2005-01-11 Thread Julian Gilbey
On Tue, Jan 11, 2005 at 02:23:39PM +0100, Frank K?ster wrote: > Now for the real problem. In tetex-bin's postinst, we have: > > OIFS='$IFS' > IFS=' ,' > lang="$RET" > for l in $lang; do > [...] > done > # IFS='$OIFS' > > [...] > > | - don't restore IFS setting, this gave strange effec

Bug#288182: Why do we not reset IFS? (was: Bug#288182: tetex-bin postinst fails when calling fmtutil)

2005-01-11 Thread Frank Küster
Attila Kinali <[EMAIL PROTECTED]> schrieb: > Interesting, my $IFS is set to \n. So it must have been changed > in between. Though, as IFS is set, i don't think this affects it. I found it, it is our fault. Unfortunately the fix is not trivial. First of all, for a fix, the problem only occurs und

Bug#288182: tetex-bin postinst fails when calling fmtutil

2005-01-11 Thread Attila Kinali
On Tue, 11 Jan 2005 11:55:16 +0100 Frank KÃster <[EMAIL PROTECTED]> wrote: > >> Second: Replace the first line by "#!/bin/sh -x", call fmtutil again > >> and post the output (will be sent to stderr). > > > > --- > > Setting up tetex-bin (2.0.2-25) ... > > This is from "dpkg --configure -a" as ro

Bug#288182: tetex-bin postinst fails when calling fmtutil

2005-01-11 Thread Frank Küster
Attila Kinali <[EMAIL PROTECTED]> wrote: > On Mon, 3 Jan 2005 11:52:32 +0100 > Hilmar Preusse <[EMAIL PROTECTED]> wrote: > > >> At first: I guess manual calling "fmtutil --all" as root don't work >> either. > > Interestingly this works fine. There is some weird setting of $IFS under the conditi