On Nov 2, 6:09 pm, Ronan Paixão <[EMAIL PROTECTED]> wrote:
> Em Dom, 2008-11-02 às 17:51 -0800, mabshoff escreveu:

<SNIP>

> > It is not sufficient that at least one exec bit is set, it has to be
> > the right one depending on ownership. I really don't see any benefit
> > over using "which" - aside from the fact that some versions of which
> > do not return an error code unequal zero when no binary is found.
>
> That's exactly what I meant by "might require more voodoo to see if the
> user itself can exec it".

Yes, that was my point.

> I just sketched the code because doing it in Python might be more
> portable, but thinking again, you probably won't get exec attributes in
> non-Unix systems anyway (though I'm not sure how os.stat handles that).
>
> However, since porting it to Windows might be a Sage target one day,
> doing it the "hard way" (which probably should include more thinking)
> may be desirable.

The port to Windows is already happening, but we will require a POSIX
shell, so "which" is available.

> Ronan Paixão

Cheers,

Michael
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to