Re: BUG and temporary patch: MHonArc 1.2.x under MSDOS

1996-04-26 17:31:18
C.Huygen's problem with reading the mhonarc.db (.mhonarc.db) database file
is a side-effect of using eval on a string with single backslashes in it.
eval treats them as quotes.  This line is the culprit:

        eval qq%require "${OUTDIR}${DIRSEP}${DBFILE}"%;

Special case repair:  This only works when the output directory is the
current directory.  Comment out the original require and insert a new one:

    #       eval qq%require "${OUTDIR}${DIRSEP}${DBFILE}"%;
            eval qq%require $DBFILE%;

I figure the simplest fix would be to use q%% instead of
qq%%  Have you tried this?  With the qq the variables will be
expanded before passed to eval.  If the string is passed
unexpanded with q, then the variables will not be interpolated
until eval processes them (hence possibly avoiding the backslash


<Prev in Thread] Current Thread [Next in Thread>