◐ Shell
clean mode source ↗

Message 230754 - Python tracker

In msg174930 Christian Heimes (christian.heimes) wrote:
> I've tested confstr("CS_PATH") on Linux, Mac OS X, Solaris, HP-UX
> and BSD. It works and the path to `sh` is always included.

In msg230713 Ned Deily(ned.deily) wrote:
> ignore Lib/macpath.py.
> [...]
> OS X uses Lib/posixpath.py.

These two messages have convinced me that the correct approach is to kick the can down the road.  I will file a new issue and patch to fix os.defpath (by initializing os.defpath by calling confstr("CS_PATH")).  Then I will file a new issue and patch that will define a reasonable os.confstr() for platforms where HAVE_CONFSTR is not defined.