diff options
author | Brandon Casey <drafnel@gmail.com> | 2013-08-21 18:39:03 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-08-22 09:50:16 -0700 |
commit | a44aa6930c9f3ce914f135c00a62878f9027f583 (patch) | |
tree | 6e4d42663aea48e3997918913356364b50bf1dd8 /t/t9107-git-svn-migrate.sh | |
parent | t9902-completion.sh: old Bash still does not support array+=('') notation (diff) | |
download | tgif-a44aa6930c9f3ce914f135c00a62878f9027f583.tar.xz |
contrib/git-prompt.sh: handle missing 'printf -v' more gracefully
Old Bash (3.0) which is distributed with RHEL 4.X and other ancient
platforms that are still in wide use, do not have a printf that
supports -v. Neither does Zsh (which is already handled in the code).
As suggested by Junio, let's test whether printf supports the -v
option and store the result. Then later, we can use it to
determine whether 'printf -v' can be used, or whether printf
must be called in a subshell.
Signed-off-by: Brandon Casey <drafnel@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t9107-git-svn-migrate.sh')
0 files changed, 0 insertions, 0 deletions