|author||Tom Ryder <email@example.com>||2017-01-25 14:00:17 +1300|
|committer||Tom Ryder <firstname.lastname@example.org>||2017-01-25 14:06:03 +1300|
|parent||Be more specific in ref name trimming (diff)|
Clear away all aliases for interactive shells
Some systems like OpenBSD or Slackware set up well-meaning aliases that I don't want. We do this for Bash, Yash, and Zsh, but not for Ksh, because it looks like its implementations all variously use aliases to implement some POSIX builtins like fc(1) or type(1) in terms of their own builtins.
Diffstat (limited to 'yash')
1 files changed, 5 insertions, 0 deletions
diff --git a/yash/yashrc b/yash/yashrc
index a731c80b..c2b2df26 100644
@@ -1,3 +1,8 @@
+# Clear away all aliases; we do this here rather than in $ENV because the ksh
+# family of shells relies on aliases to implement certain POSIX utilities like
+# fc(1) and type(1)
# Load POSIX interactive shell startup files, because Yash won't do it if not
# invoked as sh(1)
[ -e "$ENV" ] && . "$ENV"