-
Notifications
You must be signed in to change notification settings - Fork 169
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
Use a function to wrap git #32
base: master
Are you sure you want to change the base?
Use a function to wrap git #32
Conversation
@riobard Are you accepting PRs in this repo? |
Could you please explain a little bit why this PR is needed? The current code works with Bash 3 on macOS. |
@riobard No, the current code does not work on macOS with Bash 3. That is why I submitted this PR. The current code silently fails, looking for a binary with name "env LANG=C git". |
That's strange. What's the version of your macOS and its bash? |
Bash is "3.2.57(1)-release (x86_64-apple-darwin18)" and macOS version is 10.14.5. |
Easy to repro:
|
No, you're doing it wrong. Try |
|
I guess your bash might be misconfigured. bash-3.2$ uname -a
Darwin Mac-mini 18.6.0 Darwin Kernel Version 18.6.0: Thu Apr 25 23:16:27 PDT 2019; root:xnu-4903.261.4~2/RELEASE_X86_64 x86_64
bash-3.2$ bash --version
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin18)
Copyright (C) 2007 Free Software Foundation, Inc.
bash-3.2$ cmd="env LANG=C git"
bash-3.2$ $cmd --version
git version 2.20.1 (Apple Git-117)
bash-3.2$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin |
This allows bash-powerline to work on macOS, which has Bash 3.