sh-setup: work around "unset IFS" bug in some shells
[gitweb.git] / git-sh-setup.sh
index ee0e0bc045bb7d92045a3afb0a042748834e6163..107c144fed596dc8fe36b28a22939acef1cf5fd0 100644 (file)
 # 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