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

riegler lon-capa-cvs-allow@mail.lon-capa.org
Mon, 13 Aug 2007 10:21:49 -0000


riegler		Mon Aug 13 06:21:49 2007 EDT

  Modified files:              
    /loncom/homework	lonmaxima.pm 
  Log:
  I think the following maxima commands should be blacklisted:
  inchar, outchar, ttyoff
  They allow to manipulate maxima's prompts for input and output. However, &getmaximaoutput in lonmaxima (w/o .pm) relies and the defaults %i and %o, respectively.
  with_stdout, writefile
  allow file access
  
Index: loncom/homework/lonmaxima.pm
diff -u loncom/homework/lonmaxima.pm:1.19 loncom/homework/lonmaxima.pm:1.20
--- loncom/homework/lonmaxima.pm:1.19	Mon Aug 13 05:34:35 2007
+++ loncom/homework/lonmaxima.pm	Mon Aug 13 06:21:46 2007
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Interface routines to MAXIMA CAS
 #
-# $Id: lonmaxima.pm,v 1.19 2007/08/13 09:34:35 albertel Exp $
+# $Id: lonmaxima.pm,v 1.20 2007/08/13 10:21:46 riegler Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -62,7 +62,8 @@
     my ($cmd)=@_;
     foreach my $forbidden ('save','load','plot','lisp','includ','compil',
 			   'file','batch','stringout','translat','stout',
-			   'stin','block','system','concat','read') {
+			   'stin','block','system','concat','read','inchar',
+			   'outchar','ttyoff','with_stdout','writefile') {
 	if ($cmd=~/$forbidden/s) { return 1; }
     } 
     return 0;