WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Conversation

@talex5
Copy link
Collaborator

@talex5 talex5 commented Sep 15, 2025

Don't search path if the name contains a /. https://pubs.opengroup.org/onlinepubs/9799919799/ says:

If the file argument contains a <slash> character, the file argument
shall be used as the pathname for this file. Otherwise, the path
prefix for this file is obtained by a search of the directories passed
as the environment variable PATH

Don't search `$PATH` if the name contains a `/`.

https://pubs.opengroup.org/onlinepubs/9799919799/ says:

> If the file argument contains a <slash> character, the file argument
> shall be used as the pathname for this file. Otherwise, the path
> prefix for this file is obtained by a search of the directories passed
> as the environment variable PATH
@talex5 talex5 merged commit 7695d22 into ocaml-multicore:main Sep 17, 2025
4 of 5 checks passed
@talex5 talex5 deleted the exec-path branch September 17, 2025 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant