summaryrefslogtreecommitdiff
path: root/git-sh-setup.sh
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2013-01-08 11:17:01 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-01-08 11:17:01 -0800
commit8da3933ad6b4bd73bf4ed05fdd420ebb89a4e0a2 (patch)
treea5d33a4b18f19c2e6983ce1ebe358672fd4c1396 /git-sh-setup.sh
parentMerge branch 'jc/mkstemp-more-careful-error-reporting' into maint (diff)
parentsh-setup: work around "unset IFS" bug in some shells (diff)
downloadtgif-8da3933ad6b4bd73bf4ed05fdd420ebb89a4e0a2.tar.xz
Merge branch 'jc/maint-fbsd-sh-ifs-workaround' into maint
* jc/maint-fbsd-sh-ifs-workaround: sh-setup: work around "unset IFS" bug in some shells
Diffstat (limited to 'git-sh-setup.sh')
-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 22f0aed6db..795edd2852 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