-
Notifications
You must be signed in to change notification settings - Fork 4
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
Calling /usr/bin/stat under OSX does not function #20
Comments
Could you tell me what these commands produce, even if they produce errors? Also, if you have one that works on your system, I would be happy to incorporate it.
I believe the second stat exists for Mac's built-in stat and that would be overridden for you, thus the third command above would likely work. I think the solution would be to always use /usr/bin/stat and I can just add The output from mine:
|
Here's the output from those commands:
I stumbled across this issue while while trying to commit. I recreated the error to grab the message earlier:
I believe the issue is the code in the stat_file() function is assuming to run stat from $PATH if /usr/bin/stat doesn't exist. The issue on OSX is that stat is already in /usr/bin. |
I believe this latest commit fixes the issues you are seeing. Would you be able to confirm that committing works as expected for you? |
In my case, I've used homebrew to install the common GNU utilities which puts the GNU version of stat in my path.
I forked the repo to perform a pull request and update the code to simply call "stat"but I'm assuming the || is to support a different version of stat so removing the absolute path would break that compatibility.
The text was updated successfully, but these errors were encountered: