mostly fixes, a few improvements
[distro-setup] / filesystem / etc / profile.d / environment.sh
index 6191cb7eaf3c1958c9d832668f6cbc60a583f530..8463ea13dcea3a0ce104f2fc46477ce7475c011a 100644 (file)
@@ -1,4 +1,8 @@
 #!/bin/sh
+
+# Exports here get inherited by X, that is the only reason to do things
+# here. However, they do not get sent with sl().
+
 if [ -f $HOME/path-add-function ]; then
   . $HOME/path-add-function
   path-add /usr/sbin /usr/local/sbin /a/exe /a/opt/bin
@@ -155,6 +159,8 @@ fi
 # group, so if you copy files there with exact perms, that is probably
 # not what you want. I don't use a system like that, so I don't
 # care.
+#
+# Note: duplicated in .bashrc
 umask 022
 # this is how we could test for non-system user