Michael Haubenwallner michael.haubenwall...@salomon.at added the comment:
@Stefan: Nope, setting some PATH in ~/.cshrc is the wrong thing to do, and it
actually is the reason for this issue at all:
'which' is intended to tell the location of some command that would be used
when started on
Stefan Krah stefan-use...@bytereef.org added the comment:
Michael Haubenwallner rep...@bugs.python.org wrote:
@Stefan: Nope, setting some PATH in ~/.cshrc is the wrong thing to do, and it
actually is the reason for this issue at all:
'which' is intended to tell the location of some command
Stefan Krah stefan-use...@bytereef.org added the comment:
Sridhar, thanks for the information. /usr/bin/which is a shell script
on Linux, too, but it does not source any config files.
I think the behavior is odd, but as you say, it can be worked around.
In the worst case, one can set the PATH
Sridhar Ratnakumar sridh...@activestate.com added the comment:
On 2010-07-22, at 11:56 AM, Stefan Krah wrote:
Stefan Krah stefan-use...@bytereef.org added the comment:
I'm not sure this should be changed:
1) Why is .cshrc sourced? It should only get sourced for a login
shell.
Mark Lawrence breamore...@yahoo.co.uk added the comment:
@Michael: do you intend putting in a new patch for review as hinted at in
msg98071?
--
nosy: +BreamoreBoy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7742
Stefan Krah stefan-use...@bytereef.org added the comment:
I'm not sure this should be changed:
1) Why is .cshrc sourced? It should only get sourced for a login
shell.
2) If the user sets a PATH that excludes the compiler, then `which`
will also not find the compiler on other
New submission from Michael Haubenwallner michael.haubenwall...@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
Michael Haubenwallner michael.haubenwall...@salomon.at added the comment:
Uhm, as I read the patch again, there's room for improvement of pywhich():
it likely fails with CC=/full/path/to/cc
--
___
Python tracker rep...@bugs.python.org
Changes by Brian Curtin cur...@acm.org:
--
components: +None
keywords: +needs review
priority: - normal
stage: - patch review
type: - behavior
versions: +Python 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7742