Skip to content

Commit 8da3933

Browse files
committed
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
2 parents 480640e + 393050c commit 8da3933

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

git-sh-setup.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@
1212
# But we protect ourselves from such a user mistake nevertheless.
1313
unset CDPATH
1414

15-
# Similarly for IFS
16-
unset IFS
15+
# Similarly for IFS, but some shells (e.g. FreeBSD 7.2) are buggy and
16+
# do not equate an unset IFS with IFS with the default, so here is
17+
# an explicit SP HT LF.
18+
IFS='
19+
'
1720

1821
git_broken_path_fix () {
1922
case ":$PATH:" in

0 commit comments

Comments
 (0)