[issue7742] please avoid 'which' in Modules/ld_so_aix

Michael Haubenwallner report at bugs.python.org
Tue Jan 19 23:15:52 CET 2010


New submission from Michael Haubenwallner <michael.haubenwallner at salomon.at>:

In Modules/ld_so_aix there is `which $CC` to search for the full compiler's path.

Unfortunately, /usr/bin/which on AIX is a csh-script and thus ~/.cshrc gets sourced before doing the path search.

Now, when the user does set some PATH in ~/.cshrc, `which` might print a wrong path for the compiler, causing the build to fail (at best).

It would be better to do the path search without launching an external program.

----------
files: ld_so_aix-which.patch
keywords: patch
messages: 98070
nosy: haubi
severity: normal
status: open
title: please avoid 'which' in Modules/ld_so_aix
versions: Python 3.2
Added file: http://bugs.python.org/file15955/ld_so_aix-which.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7742>
_______________________________________


More information about the Python-bugs-list mailing list