Changeset 82716e in git for Singular/LIB/general.lib


Ignore:
Timestamp:
May 14, 1998, 8:45:19 PM (26 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
68e324ca946be87c2ab75edd4cc0fd161e1f6ead
Parents:
30c91fe3835d6ff4504cc9ddeeb5866465754c2a
Message:
*hannes: typos in the info-help-string


git-svn-id: file:///usr/local/Singular/svn/trunk@1773 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/LIB/general.lib

    r30c91f r82716e  
    1 // $Id: general.lib,v 1.7 1998-05-05 11:55:27 krueger Exp $
     1// $Id: general.lib,v 1.8 1998-05-14 18:45:03 Singular Exp $
    22//system("random",787422842);
    33//(GMG, last modified 22.06.96)
    44///////////////////////////////////////////////////////////////////////////////
    55
    6 version="$Id: general.lib,v 1.7 1998-05-05 11:55:27 krueger Exp $";
     6version="$Id: general.lib,v 1.8 1998-05-14 18:45:03 Singular Exp $";
    77info="
    88LIBRARY:  general.lib   PROCEDURES OF GENERAL TYPE
     
    2121 sort(ideal/module);    sort generators according to monomial ordering
    2222 sum(vector/id/..[,v]); add components of vector/ideal/...[with indices v]
    23  which(command);        searches for command and returns absolute
     23 which(command);        searches for command and returns absolute
    2424                        path, if found
    2525           (parameters in square brackets [] are optional)
     
    200200         killall(\"not\", \"type_name\");
    201201COMPUTE: killall(); kills all user-defined variables but not loaded procedures
    202          killall(\"type_name\"); kills all user-defined variables, of type \"type_name\" 
     202         killall(\"type_name\"); kills all user-defined variables, of type \"type_name\"
    203203         killall(\"not\", \"type_name\"); kills all user-defined
    204204         variables, except those of type \"type_name\" and except loaded procedures
     
    216216      }
    217217   }
    218    else 
     218   else
    219219   {
    220220     if( size(#)==1 )
     
    224224          for ( joni=size(L); joni>0; joni-- )
    225225          {
    226              if( L[joni]=="LIB" or typeof(`L[joni]`)=="proc" ) 
     226             if( L[joni]=="LIB" or typeof(`L[joni]`)=="proc" )
    227227               { kill `L[joni]`; }
    228228          }
    229229       }
    230        else 
     230       else
    231231       {
    232232          for ( ; joni>2; joni-- )
     
    649649   string fn = "/tmp/which_" + string(system("pid"));
    650650   string pn;
    651    if( typeof(command) != "string") 
    652    {
    653         return (pn);
     651   if( typeof(command) != "string")
     652   {
     653     return (pn);
    654654   }
    655655   i = system("sh", "which " + command + " > " + fn);
     
    665665   i = system("sh", "rm " + fn);
    666666   if (rs == 0) {return (pn);}
    667    else 
     667   else
    668668   {
    669669     print (command + " not found ");
Note: See TracChangeset for help on using the changeset viewer.