Make sure /bin/mksh is used in minimal-shell()
authorFrank Terbeck <ft@bewatermyfriend.org>
Wed, 3 Mar 2010 11:34:40 +0000 (12:34 +0100)
committerFrank Terbeck <ft@bewatermyfriend.org>
Wed, 3 Mar 2010 11:34:40 +0000 (12:34 +0100)
If that is not done, the `env' program may start a mksh from the
current directory, which we certainly do not want. At all.

etc/zsh/zshrc

index e30f511..f07fb67 100644 (file)
@@ -2956,7 +2956,7 @@ iwclient() {
 # spawn a minimally set up mksh - useful if you want to umount /usr/.
 minimal-shell() {
     emulate -L zsh
-    local shell="mksh"
+    local shell="/bin/mksh"
 
     if ! check_com -c ${shell}; then
         printf '`%s'\'' not available, giving up.\n' ${shell} >&2