[LON-CAPA-cvs] cvs: loncom /homework lonmaxima.pm
bisitz
lon-capa-cvs-allow@mail.lon-capa.org
Thu, 21 Aug 2008 12:08:32 -0000
bisitz Thu Aug 21 08:08:32 2008 EDT
Modified files:
/loncom/homework lonmaxima.pm
Log:
Ordered maxima command blacklist alphabetically
Index: loncom/homework/lonmaxima.pm
diff -u loncom/homework/lonmaxima.pm:1.24 loncom/homework/lonmaxima.pm:1.25
--- loncom/homework/lonmaxima.pm:1.24 Thu Aug 21 07:11:31 2008
+++ loncom/homework/lonmaxima.pm Thu Aug 21 08:08:32 2008
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Interface routines to MAXIMA CAS
#
-# $Id: lonmaxima.pm,v 1.24 2008/08/21 11:11:31 bisitz Exp $
+# $Id: lonmaxima.pm,v 1.25 2008/08/21 12:08:32 bisitz Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -60,11 +60,13 @@
sub blacklisted {
my ($cmd)=@_;
- foreach my $forbidden ('save','load','plot','lisp','includ','compil',
- 'file','batch','stringout','translat','stout',
- 'stin','block','system','concat','read','inchar',
- 'outchar','ttyoff','with_stdout','writefile',
- 'reset','quit','\? ','\?','display2d','%i','%o','describe') {
+ foreach my $forbidden (
+ '\? ','\?','%i','%o','batch','block'
+ ,'compil','concat','describe','display2d','file','inchar'
+ ,'includ','lisp','load','outchar','plot','quit'
+ ,'read','reset','save','stin','stout','stringout'
+ ,'system','translat','ttyoff','with_stdout','writefile'
+ ) {
if ($cmd=~/$forbidden/s) { return 1; }
}
return 0;