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

2010-08-23 Thread Michael Haubenwallner
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

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

2010-08-23 Thread Stefan Krah
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

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

2010-08-20 Thread Stefan Krah
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

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

2010-07-26 Thread Sridhar Ratnakumar
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.

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

2010-07-22 Thread Mark Lawrence
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

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

2010-07-22 Thread Stefan Krah
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

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

2010-01-19 Thread Michael Haubenwallner
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

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

2010-01-19 Thread Michael Haubenwallner
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

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

2010-01-19 Thread Brian Curtin
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