[LON-CAPA-cvs] cvs: loncom /homework lonmaxima.pm

albertel lon-capa-cvs-allow@mail.lon-capa.org
Tue, 29 May 2007 20:56:39 -0000


albertel		Tue May 29 16:56:39 2007 EDT

  Modified files:              
    /loncom/homework	lonmaxima.pm 
  Log:
  - ban concat/sconcat
  - addin debug display of communication
  
  
Index: loncom/homework/lonmaxima.pm
diff -u loncom/homework/lonmaxima.pm:1.14 loncom/homework/lonmaxima.pm:1.15
--- loncom/homework/lonmaxima.pm:1.14	Sat May 26 11:51:08 2007
+++ loncom/homework/lonmaxima.pm	Tue May 29 16:56:39 2007
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Interface routines to MAXIMA CAS
 #
-# $Id: lonmaxima.pm,v 1.14 2007/05/26 15:51:08 www Exp $
+# $Id: lonmaxima.pm,v 1.15 2007/05/29 20:56:39 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -60,7 +60,9 @@
 
 sub blacklisted {
     my ($cmd)=@_;
-    foreach my $forbidden ('save','load','plot','lisp','includ','compil','file','batch','stringout','translat','stout','stin','block','system') {
+    foreach my $forbidden ('save','load','plot','lisp','includ','compil',
+			   'file','batch','stringout','translat','stout',
+			   'stin','block','system','concat') {
 	if ($cmd=~/$forbidden/s) { return 1; }
     } 
     return 0;
@@ -77,6 +79,7 @@
     }
     $reply=~s/^\s*//gs;
     $reply=~s/\s*$//gs;
+    &Apache::lonxml::debug("maxima $fullscript \n reply $reply");
     return $reply;
 }