Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102911801
D37034.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
753 B
Referenced Files
None
Subscribers
None
D37034.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D37034: sh: when loading profile, read only .sh files.
Attached
Detach File
Event Timeline
Log In to Comment