Jakub Wilk <jw...@jwilk.net> added the comment:

which(1) is not standardized, and there are many[*] implementations with 
different behavior in corner cases. For example, this happens with zsh 5.7.1 on 
Debian:

  % which python      
  /usr/bin/python
  % PATH= which python
  python
  % PATH=. which python
  ./python
  % PATH=: which python
  python


[*] I'm aware of GNU which, which from debianutils, and zsh builtin. In 
addition to this, AFAICS every major BSD distro has a different implementation…

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue35755>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to