[SCM] GNU Autoconf source repository branch, master, updated. v2.65-33-ge51c991
"Paolo Bonzini" <[email protected]> Thu, 21 Jan 2010 13:35:37 +0000
| Newsgroups | gmane.comp.sysutils.autoconf.cvs |
|---|---|
| Message-ID | <[email protected]> |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Autoconf source repository".
http://git.sv.gnu.org/gitweb/?p=autoconf.git;a=commitdiff;h=e51c9919f2cf70185b7916ac040bc0bbfd0f743b
The branch, master has been updated
via e51c9919f2cf70185b7916ac040bc0bbfd0f743b (commit)
from 57b9bc399fd2ea4d8a320f7e044e9223ddb8528a (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit e51c9919f2cf70185b7916ac040bc0bbfd0f743b
Author: Paolo Bonzini <[email protected]>
Date: Thu Jan 21 12:16:42 2010 +0100
Add recommendation on (not) unsetting IFS.
* doc/autoconf.texi (Special shell variables): Explain why it's
better not to unset IFS.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 6 ++++++
doc/autoconf.texi | 16 ++++++++++++++++
2 files changed, 22 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index eaee96b..70432f8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-01-20 Paolo Bonzini <[email protected]>
+
+ Add recommendation on (not) unsetting IFS.
+ * doc/autoconf.texi (Special shell variables): Explain why it's
+ better not to unset IFS.
+
2010-01-19 Ralf Wildenhues <[email protected]>
config.status: consistent exit status with nonexistent config file input.
diff --git a/doc/autoconf.texi b/doc/autoconf.texi
index 1549f89..e5cf9fd 100644
--- a/doc/autoconf.texi
+++ b/doc/autoconf.texi
@@ -15750,6 +15750,22 @@ environment variables be set to @samp{C} if the C locale is desired;
@file{configure} scripts and M4sh do that for you.
Export these variables after setting them.
+Unsetting @code{IFS} instead of resetting it to the default sequence
+is not suggested, since code that tries to save and restore the
+variable's value will incorrectly reset it to an empty value, thus
+disabling field splitting:
+
+@example
+unset IFS
+# default separators used for field splitting
+
+save_IFS=$IFS
+IFS=:
+# ...
+IFS=$save_IFS
+# no field splitting performed
+@end example
+
@c However, some older, nonstandard
@c systems (notably @acronym{SCO}) break if locale environment variables
@c are set to @samp{C}, so when running on these systems
hooks/post-receive
--
GNU Autoconf source repository