[issue25481] PermissionError in subprocess.check_output() when an inaccessible directory on the path

2021-03-11 Thread Eryk Sun
Eryk Sun added the comment: > So, two interesting questions: does this in fact match the behavior of > os._execvpe, and does it match the behavior of the shell? I think it's fine. child_exec() tries all paths. It saves the first error that's not ENOENT or ENOTDIR. The saved error gets repor

[issue25481] PermissionError in subprocess.check_output() when an inaccessible directory on the path

2015-10-27 Thread Gregory P. Smith
Gregory P. Smith added the comment: Definitely a bug. The path search should silently skip directories it can't access. On Tue, Oct 27, 2015, 7:05 AM R. David Murray wrote: > > R. David Murray added the comment: > > So, two interesting questions: does this in fact match the behavior of > os._e

[issue25481] PermissionError in subprocess.check_output() when an inaccessible directory on the path

2015-10-27 Thread R. David Murray
R. David Murray added the comment: So, two interesting questions: does this in fact match the behavior of os._execvpe, and does it match the behavior of the shell? The latter would appear to be false, and could arguably be claimed to be a bug. If we agree that it is, we need to learn what th