From: James A. <amu...@us...> - 2003-01-26 21:47:11
|
Update of /cvsroot/maxima/maxima/src In directory sc8-pr-cvs1:/tmp/cvs-serv29076/src Modified Files: maxima.in Log Message: Workaround for a bug in texmacs -- unset MAXIMA_DIRECTORY if it exists, but is empty. Index: maxima.in =================================================================== RCS file: /cvsroot/maxima/maxima/src/maxima.in,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- maxima.in 24 Sep 2002 16:56:14 -0000 1.10 +++ maxima.in 26 Jan 2003 21:47:08 -0000 1.11 @@ -166,6 +166,13 @@ if [ -f "$maximarc_path" ]; then . "$maximarc_path" fi + +# For some reason TeXmacs sets MAXIMA_DIRECTORY to the empty string, +# which breaks maxima's internal path logic. This is a workaround. +if [ -z "$MAXIMA_DIRECTORY" ]; then + unset MAXIMA_DIRECTORY +fi + process_args "$@" setup_vars |