summaryrefslogtreecommitdiff
path: root/corebinutils/sh/profile
diff options
context:
space:
mode:
authorMehmet Samet Duman <yongdohyun@projecttick.org>2026-04-02 18:29:19 +0300
committerMehmet Samet Duman <yongdohyun@projecttick.org>2026-04-02 18:29:19 +0300
commit85f60af1bb558bc7248fb64528c5bba92e504adf (patch)
treeddb4ab72a5ca33b668b34ecdb09fe284c5644677 /corebinutils/sh/profile
parent96be0a182e0b889a9daf43c04a0b835aa604d280 (diff)
parent126b33a9db9b44a56f2c62d18346746ec1330766 (diff)
downloadProject-Tick-85f60af1bb558bc7248fb64528c5bba92e504adf.tar.gz
Project-Tick-85f60af1bb558bc7248fb64528c5bba92e504adf.zip
Add 'corebinutils/sh/' from commit '126b33a9db9b44a56f2c62d18346746ec1330766'
git-subtree-dir: corebinutils/sh git-subtree-mainline: 96be0a182e0b889a9daf43c04a0b835aa604d280 git-subtree-split: 126b33a9db9b44a56f2c62d18346746ec1330766
Diffstat (limited to 'corebinutils/sh/profile')
-rw-r--r--corebinutils/sh/profile33
1 files changed, 33 insertions, 0 deletions
diff --git a/corebinutils/sh/profile b/corebinutils/sh/profile
new file mode 100644
index 0000000000..ee0879a13e
--- /dev/null
+++ b/corebinutils/sh/profile
@@ -0,0 +1,33 @@
+#
+# System-wide .profile file for sh(1).
+#
+# For the setting of languages and character sets please see
+# login.conf(5) and in particular the charset and lang options.
+# For full locales list check /usr/share/locale/*
+# You should also read the setlocale(3) man page for information
+# on how to achieve more precise control of locale settings.
+#
+# Check system messages
+# msgs -q
+# Allow terminal messages
+# mesg y
+
+# 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/*.sh ; do
+ if [ -f "${_file}" ] ; then
+ case :${_loaded}: in
+ *:"${_file}":*)
+ ;;
+ *)
+ _loaded="${_loaded:+${_loaded}:}${_file}"
+ . "${_file}"
+ ;;
+ esac
+ fi
+ done
+done
+unset _loaded _dir _file