aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-01-02 10:40:41 -0800
committerJunio C Hamano <gitster@pobox.com>2013-01-02 10:40:41 -0800
commit2e3c1f7a31136f96c979d2896e4b2ac1f39efe47 (patch)
tree90cf0bd553063cca42841b1b667e174d31c8c0dc
parent71288e15dfd6638d14b307b564d1230a4500daa1 (diff)
parent393050c32b58dceef8706d389abe3793fbac51ae (diff)
downloadgit-2e3c1f7a31136f96c979d2896e4b2ac1f39efe47.tar.gz
git-2e3c1f7a31136f96c979d2896e4b2ac1f39efe47.tar.xz
Merge branch 'jc/maint-fbsd-sh-ifs-workaround'
Some shells do not behave correctly when IFS is unset; work it around by explicitly setting it to the default value. * jc/maint-fbsd-sh-ifs-workaround: sh-setup: work around "unset IFS" bug in some shells
-rw-r--r--git-sh-setup.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/git-sh-setup.sh b/git-sh-setup.sh
index 22f0aed6d..795edd285 100644
--- a/git-sh-setup.sh
+++ b/git-sh-setup.sh
@@ -12,8 +12,11 @@
# But we protect ourselves from such a user mistake nevertheless.
unset CDPATH
-# Similarly for IFS
-unset IFS
+# Similarly for IFS, but some shells (e.g. FreeBSD 7.2) are buggy and
+# do not equate an unset IFS with IFS with the default, so here is
+# an explicit SP HT LF.
+IFS='
+'
git_broken_path_fix () {
case ":$PATH:" in