aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-12-18 12:24:31 +1300
committerTom Ryder <tom@sanctum.geek.nz>2016-12-18 12:24:31 +1300
commit426d88757aae89d1aa1922a93213e4fed2596456 (patch)
tree950015e111854b3558524e7f03c7ae5c860d2c86
parentRemove reserved word (diff)
downloaddotfiles-426d88757aae89d1aa1922a93213e4fed2596456.tar.gz
dotfiles-426d88757aae89d1aa1922a93213e4fed2596456.zip
Undo strange default for login ksh93 ENV
I haven't yet figured out why it does this
-rw-r--r--Makefile2
-rw-r--r--ksh/profile.d/ksh.sh6
2 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 9961da71..739b8462 100644
--- a/Makefile
+++ b/Makefile
@@ -292,8 +292,10 @@ install-mysql :
install-ksh : check-ksh install-sh
install -m 0755 -d -- \
+ "$(HOME)"/.profile.d \
"$(HOME)"/.shrc.d \
"$(HOME)"/.kshrc.d
+ install -pm 0644 -- ksh/profile.d/* "$(HOME)"/.profile.d
install -pm 0644 -- ksh/shrc.d/* "$(HOME)"/.shrc.d
install -pm 0644 -- ksh/kshrc "$(HOME)"/.kshrc
install -pm 0644 -- ksh/kshrc.d/* "$(HOME)"/.kshrc.d
diff --git a/ksh/profile.d/ksh.sh b/ksh/profile.d/ksh.sh
new file mode 100644
index 00000000..61626b1a
--- /dev/null
+++ b/ksh/profile.d/ksh.sh
@@ -0,0 +1,6 @@
+# If ksh93 as a login shell decided to give ENV a bizarre value, quietly shunt
+# it out of the way. This is probably not how I'm supposed to do this, but I
+# can't find documentation as to why ksh93 chooses this value.
+case $ENV in
+ .sh.ENV) [ -f "$ENV" ] || unset ENV ;;
+esac