Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

which fails on macOS #403

Open
Joannis opened this issue Oct 13, 2022 · 0 comments
Open

which fails on macOS #403

Joannis opened this issue Oct 13, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@Joannis
Copy link
Member

Joannis commented Oct 13, 2022

Describe the bug

The command which fails to resolve any application, on the macOS 13 beta.

This happens at this line

To Reproduce

Using Swift 5.7 on macOS 13, run the Process.shell.which("cat") command, or any other application that which is able to find in the shell. There's no error, but just an empty string for output. This happens while running it from Xcode itself, so doesn't affect most use cases.

Expected behavior

which returns the path to the requested command line utility.

Additional context

Adding -l (login shell) on macOS builds fixes the problem, but I'm not sure if this affects specific platforms.

@Joannis Joannis added the bug Something isn't working label Oct 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant