diff options
author | Junio C Hamano <gitster@pobox.com> | 2012-12-07 14:31:52 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-12-10 13:27:16 -0800 |
commit | 393050c32b58dceef8706d389abe3793fbac51ae (patch) | |
tree | 2e7413f00106d8a105f2b291e7d1b4f7d8ad019d /t/t9131-git-svn-empty-symlink.sh | |
parent | Update draft release notes to 1.8.0.2 (diff) | |
download | tgif-393050c32b58dceef8706d389abe3793fbac51ae.tar.xz |
sh-setup: work around "unset IFS" bug in some shells
With an unset IFS, field splitting is supposed to act as if IFS is
set to the usual SP HT LF, but Marc Branchaud reports that the shell
on FreeBSD 7.2 gets this wrong.
It is easy to set it to the default value manually, and it is also
safer in case somebody tries to save the old value away and restore,
e.g.
$oIFS=$IFS
IFS=something
...
IFS=$oIFS
while forgetting that the original IFS might be unset (which can be
coded but would be more involved).
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t9131-git-svn-empty-symlink.sh')
0 files changed, 0 insertions, 0 deletions