setup: etc/profile - skip /etc/env.d/*.zwc (zsh compiled) files, - quote en...

gotar gotar at pld-linux.org
Wed May 27 13:43:27 CEST 2009


Author: gotar                        Date: Wed May 27 11:43:27 2009 GMT
Module: setup                         Tag: HEAD
---- Log message:
- skip /etc/env.d/*.zwc (zsh compiled) files,
- quote env.d and shrc.d file names

---- Files affected:
setup/etc:
   profile (1.51 -> 1.52) 

---- Diffs:

================================================================
Index: setup/etc/profile
diff -u setup/etc/profile:1.51 setup/etc/profile:1.52
--- setup/etc/profile:1.51	Thu Feb 19 09:23:11 2009
+++ setup/etc/profile	Wed May 27 13:43:22 2009
@@ -50,7 +50,7 @@
 
 case "$SH" in
   bash)
-  	# currently - nothing
+	# currently - nothing
 	;;
   ksh|pdksh)
 	PS2='> '
@@ -121,12 +121,12 @@
 	for i in /etc/env.d/* ; do
 		NAME=${i##*/}
 		case $NAME in
-			*~ | *.bak | *.old | *.rpmnew | *.rpmsave )
+			*~ | *.bak | *.old | *.rpmnew | *.rpmsave | *.zwc )
 				# nothing
 				;;
 			* )
-				if [ -r $i ]; then
-					. $i; export $NAME
+				if [ -r "$i" ]; then
+					. "$i"; export "$NAME"
 				fi
 				;;
 		esac
@@ -136,7 +136,7 @@
 
 # Scripts:
 for i in /etc/profile.d/*.sh ; do
-	. $i
+	. "$i"
 done
 
 unset i
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/setup/etc/profile?r1=1.51&r2=1.52&f=u



More information about the pld-cvs-commit mailing list