Page MenuHomeFreeBSD

D37034.diff
No OneTemporary

D37034.diff

diff --git a/bin/sh/profile b/bin/sh/profile
--- a/bin/sh/profile
+++ b/bin/sh/profile
@@ -13,17 +13,12 @@
# Allow terminal messages
# mesg y
-# Load each file in /etc/profile.d/, then /usr/local/etc/profile, then
-# each file in /usr/local/etc/profile.d/.
+# Load each .sh file in /etc/profile.d/, then /usr/local/etc/profile,
+# then each .sh file in /usr/local/etc/profile.d/.
_loaded=${_loaded:-/etc/profile}
export _loaded
for _dir in /etc /usr/local/etc ; do
- for _file in "${_dir}"/profile "${_dir}"/profile.d/* ; do
- case ${_file} in
- *[~#]|*.OLD|*.bak|*.orig|*,v)
- continue
- ;;
- esac
+ for _file in "${_dir}"/profile "${_dir}"/profile.d/*.sh ; do
if [ -f "${_file}" ] ; then
case :${_loaded}: in
*:"${_file}":*)

File Metadata

Mime Type
text/plain
Expires
Tue, Nov 19, 4:02 PM (21 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14719402
Default Alt Text
D37034.diff (753 B)

Event Timeline