Corrected bug related to save/restore of IFS system var

This commit is contained in:
George Boudreau 2006-03-17 15:13:31 +00:00
parent 5365c39cf4
commit 8f4d140967

View file

@ -589,6 +589,7 @@ get_book() {
#----------------------------#
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 @@ build_patches_file() { # Supply a suitably formated list of patches.
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.*//' \