Opened 8 years ago

Last modified 8 years ago

#14253 closed defect

sage.misc.sage_ostools.have_program: use os.access() — at Version 1

Reported by: jdemeyer Owned by: jason
Priority: blocker Milestone: sage-5.9
Component: misc Keywords:
Cc: Merged in:
Authors: Jeroen Demeyer Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description (last modified by jdemeyer)

1) On Solaris, the default /bin/sh shell doesn't understand the command keyword. 2) Using os.access() should be more portable and less prone to errors anyway than command -v %s.

Change History (1)

comment:1 Changed 8 years ago by jdemeyer

  • Description modified (diff)
  • Summary changed from sage.misc.sage_ostools.have_program: use bash to sage.misc.sage_ostools.have_program: use os.access()
Note: See TracTickets for help on using tickets.