Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'jc/maint-fbsd-sh-ifs-workaround' into maint
author
Junio C Hamano
<gitster@pobox.com>
Tue, 8 Jan 2013 19:17:01 +0000
(11:17 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 8 Jan 2013 19:17:01 +0000
(11:17 -0800)
* jc/maint-fbsd-sh-ifs-workaround:
sh-setup: work around "unset IFS" bug in some shells
git-sh-setup.sh
patch
|
blob
|
history
raw
(from parent 1:
480640e
)
diff --git
a/git-sh-setup.sh
b/git-sh-setup.sh
index 22f0aed6db366c3d4a291b3ae646c45002ff86c1..795edd2852aa1c680c3db1776bb84aca7662899d 100644
(file)
--- 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