r2352 - jhalfs/branches/experimental/common

georgeb at linuxfromscratch.org georgeb at linuxfromscratch.org
Fri Mar 17 07:13:31 PST 2006


Author: georgeb
Date: 2006-03-17 08:13:31 -0700 (Fri, 17 Mar 2006)
New Revision: 2352

Modified:
   jhalfs/branches/experimental/common/common-functions
Log:
Corrected bug related to save/restore of IFS system var

Modified: jhalfs/branches/experimental/common/common-functions
===================================================================
--- jhalfs/branches/experimental/common/common-functions	2006-03-16 21:45:51 UTC (rev 2351)
+++ jhalfs/branches/experimental/common/common-functions	2006-03-17 15:13:31 UTC (rev 2352)
@@ -589,6 +589,7 @@
 #----------------------------#
 build_patches_file() {       # Supply a suitably formated list of patches.
 #----------------------------#
+  local saveIFS=$IFS
   local IFS
   echo -ne "Creating the patch file list "
 
@@ -609,6 +610,7 @@
 
   IFS=$'\x0A'  # Modify the 'internal field separator' to break on 'LF' only
   for f in `cat packages`; do
+    IFS=$saveIFS  # Restore the system defaults
     LOC_add_patches_entry \
     `echo $f | sed -e 's/-version//' \
                    -e 's/-file.*//' \




More information about the alfs-log mailing list