summaryrefslogtreecommitdiff
path: root/pager.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2012-08-08 12:08:17 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2012-08-08 14:36:33 -0700
commit785063e02bb249ef3a39db88575fe626b310d4a7 (patch)
treeb23673aef74184f0413ee71044df6034ec08aab6 /pager.c
parentGit 1.7.9.7 (diff)
downloadtgif-785063e02bb249ef3a39db88575fe626b310d4a7.tar.xz
sh-setup: protect from exported IFS
Many scripted Porcelains rely on being able to split words at the default $IFS characters, i.e. SP, HT and LF. If the user exports a non-default IFS to the environment, what they read from plumbing commands such as ls-files that use HT to delimit fields may not be split in the way we expect. Protect outselves by resetting it, just like we do so against CDPATH exported to the environment. Noticed by Andrew Dranse <adranse@oanda.com>. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'pager.c')
0 files changed, 0 insertions, 0 deletions