On 10/3/13 15:47, "Andrew Deason" <[email protected]> wrote:

>On Thu, 03 Oct 2013 11:39:34 -0700
>Russ Allbery <[email protected]> wrote:
>
>> > > + exec /usr/share/debconf/frontend  configure
>[...]
>> set -x doesn't follow shell scripts through debconf because debconf does
>> some black magic to reinvoke the script.  It's one of the things that
>> makes debugging postinst scripts so "interesting."
>
>I'm not sure if it matters, and sorry if this is getting too far off
>topic, but I'm not following this as the reason. It's invoking
>/usr/share/debconf/frontend, which at least for a debian system I'm
>glancing at, is a perl script, so of course the perl isn't going to
>honor 'set -x'. But if you mean that that perl reinvokes the original
>postinst shell script, I don't see how it could do so; how does it know
>which script to run?

I suspect that's the mentioned black magic (and I can think of several
evil ways to pull it off).

-- 
brandon s allbery kf8nh    sine nomine associates
[email protected]       [email protected]
unix, openafs, kerberos, infrastructure, xmonad



Reply via email to