#12333: Add back functionality that was inadvertantly deleted from Sage
----------------------+-----------------------------------------------------
   Reporter:  was     |          Owner:  jason         
       Type:  defect  |         Status:  needs_review  
   Priority:  major   |      Milestone:  sage-5.0      
  Component:  misc    |       Keywords:                
Work_issues:          |       Upstream:  N/A           
   Reviewer:          |         Author:  Francis Clarke
     Merged:          |   Dependencies:                
----------------------+-----------------------------------------------------
Changes (by fwclarke):

  * status:  needs_work => needs_review


Comment:

 Replying to [comment:2 jhpalmieri]:

 > Unfortunately, `grep --recursive ...` does not work on Solaris or
 !OpenSolaris.

 The code in the new [attachment:trac_12333_restore_grep_scripts.patch]
 should work much more generally.  It seems to be no slower than the
 previous approach.

 > As far as the banner occurs, maybe it shouldn't be there at all? Set
 `SAGE_BANNER=no`, as in `sage -c ...`, to omit it. Finally, this should be
 rebased to some beta release of Sage 5.0: the script sage-sage is no
 longer there; instead, patch `SAGE_ROOT/spkg/bin/sage`.

 The attachment [attachment:trac_12333_restore_grep_root.patch] patches
 `SAGE_ROOT/spkg/bin/sage`, removes the banner, and allows `-search_src` as
 a synonym for `-grep`, and `-search_doc` for `-grepdoc`.

 One other modification to earlier behaviour: the `grep` option `-i` is no
 longer hard-wired, but it can be restored, as can other options.  For
 example:

 {{{
 $ sage -search_src -il clarke
 sage/rings/morphism.pyx
 sage/rings/number_field/number_field.py
 sage/rings/number_field/number_field_element.pyx
 sage/rings/number_field/number_field_ideal.py
 sage/rings/number_field/unit_group.py
 sage/rings/polynomial/polynomial_element_generic.py
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12333#comment:4>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to