aboutsummaryrefslogtreecommitdiff
path: root/sh/profile.d
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-09 11:14:52 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-09 11:14:52 +1200
commitf870a25ed27b1313e023e634e9ccf27b861b3631 (patch)
tree747bf25416ca588f51067c2cf0a28f3c79eb1633 /sh/profile.d
parentRemove double-up install-bash target (diff)
downloaddotfiles-f870a25ed27b1313e023e634e9ccf27b861b3631.tar.gz
dotfiles-f870a25ed27b1313e023e634e9ccf27b861b3631.zip
Add some notes about ENV for Bash
Diffstat (limited to 'sh/profile.d')
-rw-r--r--sh/profile.d/env.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/sh/profile.d/env.sh b/sh/profile.d/env.sh
index 541da0d6..ba8e7f49 100644
--- a/sh/profile.d/env.sh
+++ b/sh/profile.d/env.sh
@@ -1,4 +1,7 @@
-# If we're running some kind of ksh, export ENV to find ~/.kshrc
+# If we're running some kind of ksh, export ENV to find ~/.kshrc. Bash differs
+# considerably from this behaviour; it uses ENV as its startup file when it's
+# invoked as sh(1), and uses .bashrc or --rcfile as its interactive startup
+# file, so it doesn't need to be specified here.
if [ -n "$KSH_VERSION" ] ; then
ENV=$HOME/.kshrc
export ENV