Re: [PATCH] sh-setup: work around unset IFS bug in some shells

2012-12-08 Thread Andreas Schwab
Junio C Hamano gits...@pobox.com writes: Andreas Schwab sch...@linux-m68k.org writes: Junio C Hamano gits...@pobox.com writes: +# 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.

[PATCH] sh-setup: work around unset IFS bug in some shells

2012-12-07 Thread Junio C Hamano
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, so let's do so. Signed-off-by: Junio C Hamano gits...@pobox.com ---

Re: [PATCH] sh-setup: work around unset IFS bug in some shells

2012-12-07 Thread Andreas Schwab
Junio C Hamano gits...@pobox.com writes: +# 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=' +' Trailing whitespace can easily get lost, so it's probably better to

Re: [PATCH] sh-setup: work around unset IFS bug in some shells

2012-12-07 Thread Junio C Hamano
Andreas Schwab sch...@linux-m68k.org writes: Junio C Hamano gits...@pobox.com writes: +# 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=' +' Trailing whitespace