From: Marc Branchaud <marcnarc@xxxxxxxxxxx> Some sh implementations interpret "unset IFS" to mean IFS=''. This was seen in FreeBSD 7.2's sh. We need to make sure IFS has its default value: <space><tab><newline>. Signed-off-by: Marc Branchaud <marcnarc@xxxxxxxxxxx> --- git-sh-setup.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/git-sh-setup.sh b/git-sh-setup.sh index ee0e0bc..56e6498 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, except that some sh implementations interpret "unset IFS" +# as IFS='', so we need to set IFS explicitly to its POSIX default using +# literal <space><tab><newline> characters. +IFS=' +' git_broken_path_fix () { case ":$PATH:" in -- 1.8.0.1 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html