#5806: [with patch, needs review] Sage 3.4.1.rc3: failing test
"devel/sage/sage/misc/sagedoc.py"
---------------------+------------------------------------------------------
 Reporter:  jsp      |       Owner:  ddrake    
     Type:  defect   |      Status:  assigned  
 Priority:  blocker  |   Milestone:  sage-4.0.1
Component:  misc     |    Keywords:            
---------------------+------------------------------------------------------
Changes (by ddrake):

  * owner:  cwitty => ddrake
  * status:  new => assigned


Comment:

 Replying to [comment:21 jhpalmieri]:
 > The problem is the find command, as you suspected.  By using the
 
[http://developer.apple.com/documentation/Darwin/Reference/ManPages/man1/find.1.html
 man page] and a lot of trial and error, I found that a command something
 like this one works:
 > {{{
 > find -f /Applications/sage/devel/sage/sage ".*\\.\\(py\\|pyx\\|pxd\\)"
 -exec grep -i -H matrix {} +
 > }}}
 > although this isn't right either.  I actually really hate the find
 command...

 I figured out the problem: it's the regex stuff, not the symlinks. GNU
 find demands backslashes in {{{\(py\|pyx\|pxd\)}}} unless you specify
 "-regextype posix-awk"; Apple's find demands that you ''not'' use
 backslashes and doesn't understand "-regextype". Kids, this is why daddy
 drinks.

 I'll punt and just chain together a bunch of "{{{-or -name ...}}}"; I
 tested that and it works in OS X and Linux. Next, of course, someone will
 come along and tell us that it doesn't work in Solaris or BSD. (Right now
 I'm not even ''thinking'' about Windows...)

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5806#comment:22>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of 
Reinventing the Wheel

--~--~---------~--~----~------------~-------~--~----~
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