components: ensure that the last line is read, even if it lacks EOL;
authorwenzelm
Wed, 28 Oct 2009 22:57:32 +0100
changeset 33294 e2a11715aab1
parent 33293 4645818f0fbd
child 33295 ce8faf41b0d4
components: ensure that the last line is read, even if it lacks EOL;
lib/scripts/getsettings
--- a/lib/scripts/getsettings	Wed Oct 28 22:26:00 2009 +0100
+++ b/lib/scripts/getsettings	Wed Oct 28 22:57:32 2009 +0100
@@ -31,6 +31,8 @@
 #users tend to put strange things in here ...
 unset ENV
 unset BASH_ENV
+unset POSIXLY_CORRECT
+set +o posix
 
 #support easy settings
 function choosefrom ()
@@ -105,7 +107,7 @@
           *) init_component "$COMPONENT/$REPLY" ;;
         esac
       done
-    } < "$COMPONENT/etc/components"
+    } < <( cat "$COMPONENT/etc/components"; echo; )
   fi
 }