Package: anthy
Version: 6724-1

update-anthy-dics creates a temporary file and almost gets it right, but
failes to quite do it correctly. It uses mktemp, which should be a good
tool for it, but uses it incorrectly, resultingin in a situation where
it uses the same temporary filename every time. This line is the
problem: 

        mktemp $TMPDICTCONFIG > /dev/null 2>&1

mktemp outputs the actual name of the temporary file it creates to
stdout. Also, it can fail, and that error must be dealt with. Something
like the following should work:

        TMPDICTCONFIG=$(mktemp $TMPDICTCONFIG)
        if [ $? != 0 ]
        then
            echo "mktemp failed, aborting" 1>&2
            exit 1
        fi

(The above code is untested.)

Also, the last cd in the file has no function, as far as I can see.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to