diff --git a/data/etc/cern_profile.sh b/data/etc/cern_profile.sh
index 62c75168770cdf9171202d6bf7c811f3cfb05f6b..c31eca1ad2eefb8caa9ad5e43f2a22459b5a2a39 100644
--- a/data/etc/cern_profile.sh
+++ b/data/etc/cern_profile.sh
@@ -40,6 +40,8 @@ if [ -e "${_home_dir}" -a ! \( -e "${_home_dir}/.nogrouplogin" \) ] ; then
 
   if [ ! -e "${_home_dir}/.nolbenv" ] ; then
     # LbEnv enabled
+    # - make sure we do not get spurious "source" command line arguments to the scripts
+    shift $#
     # - check the requested flavour
     if [ -e "${_home_dir}/.devLHCBLoginscript" ] ; then
       # this is legacy for...