updated: [161dc23] lib/mc.sh.in: fixes for non-bash shells (fixing #196)
Enrico Weigelt, metux IT service
weigelt at metux.de
Thu Feb 5 06:21:34 UTC 2009
The following commit has been merged in the mc-4.6 branch:
commit 161dc235a618c33bda49dbd84295406d5273fb70
Author: Enrico Weigelt, metux IT service <weigelt at metux.de>
Date: Wed Feb 4 22:39:27 2009 +0100
lib/mc.sh.in: fixes for non-bash shells (fixing #196)
diff --git a/ChangeLog b/ChangeLog
index 9bdc617..74b6e0f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2009-02-04 Enrico Weigelt, metux ITS <weigelt at metux.de>
+ * lib/mc.sh.in: fixes for non-bash shells (fixing #196)
+
+2009-02-04 Enrico Weigelt, metux ITS <weigelt at metux.de>
+
* mhl/types.h, mhl/escape.h: replaced bool type by stdbool.h (fixing #240)
2009-02-03 Enrico Weigelt, metux ITS <weigelt at metux.de>
diff --git a/lib/mc.sh.in b/lib/mc.sh.in
index e3dc1fc..a829bf0 100644
--- a/lib/mc.sh.in
+++ b/lib/mc.sh.in
@@ -1 +1,3 @@
+# Don't define aliases in plain Bourne shell
+[ -n "${BASH_VERSION}${KSH_VERSION}${ZSH_VERSION}" ] || return 0
alias mc='. @suppbindir@/mc-wrapper.sh'
--
Midnight Commander Development
More information about the mc-devel
mailing list