On 26 Jun., 21:34, Arnaud Bergeron <aberge...@gmail.com> wrote:
> 2009/6/26 kcrisman <kcris...@gmail.com>:
>
>
>
> > On Jun 26, 2:24 pm, John H Palmieri <jhpalmier...@gmail.com> wrote:
> >> On Jun 26, 10:33 am, kcrisman <kcris...@gmail.com> wrote:
>
> >> > > > I'm really sorry this is so weird.  This is OSX.4 on a PPC, so 
> >> > > > perhaps
> >> > > > something got changed in those scripts recently?
>
> >> > > Yes, it got changed in #5806. Can you try
>
> >> > >  find SAGE_ROOT/devel/sage/sage// \( -name *.py \) -exec grep -i -H
> >> > > cannot {} +
>
> >> > Same error.  I tried putting a ; in various places, but to no avail.
>
> >> How about if you replace the "+" at the end with "\;"?
>
> The '+' thing is a GNUism.  That's why it doesn't work on 10.4.  You should 
> use

Wow,
on my MacIntel OS X 10.4.11 box the following command *does work
fine*:

find /Users/Shared/sage/sage-4.0.2/devel/sage/sage// \( -name *.py \) -
exec grep -i -H cannot {} +

especially this command has got this "GNUish +" at the end, but on my
MacPPC OS X 10.4.11 box I get this strange error message (find: -exec:
no terminating ";"), too.
Weird!
So it is not a OS X 10.4.11 issue, but rather a MacPPC versus MacIntel
issue --- OS X 10.5 won't install on my MacPPC box (it has got only
550MHz), could someone please check this on a MacPPC with OS X 10.5,
e.g. at the Sage build farm?

>
> find $SAGE_ROOT/devel/sage/sage/ \( -name '*.py' \) -print0 | xargs -0
> grep -i -H 'cannot'
>

This version of the command works fine on *both* the OS X 10.4.11
MacIntel and MacPPC, and is fast.

> So that you get the behavior that '+' gives (limit the number of
> invocations of grep) and stay portable.
>
>
>
> > Bingo!
>
> > find Desktop/sage-4.1.alpha1/devel/sage/sage// \( -name *.py \) -exec
> > grep -i -H Palmieri {} \;
>

This one works on both boxes, too, but behaves way slower.

Cheers,
gsw

> > Desktop/sage-4.1.alpha1/devel/sage/sage///algebras/
> > steenrod_algebra.py:- John H. Palmieri (2008-07-30): version 0.9
> > Desktop/sage-4.1.alpha1/devel/sage/sage///algebras/
> > steenrod_algebra.py:#       Copyright (C) 2008 John H. Palmieri
> > <palmi...@math.washington.edu>
> > ...
> > Desktop/sage-4.1.alpha1/devel/sage/sage///misc/latex_macros.py:- John
> > H. Palmieri (2009-03)
> > Desktop/sage-4.1.alpha1/devel/sage/sage///misc/sagedoc.py:- J. H.
> > Palmieri (2009-04-11): fix for #5754 plus doctests
>
> --
> La brigade SnW veut vous recruter -http://brigade.snw.googlepages.com
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to