You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 thatwhich
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.The text was updated successfully, but these errors were encountered: