no longer make the DIRSTACKBASE variable read-only – it makes too much
trouble when re-reading .mkshrc, and “we sell rope” after all
This commit is contained in:
parent
2cae6c9ab5
commit
09318a472b
@ -1,4 +1,4 @@
|
|||||||
# $MirOS: src/bin/mksh/dot.mkshrc,v 1.29 2008/03/03 18:44:32 tg Stab $
|
# $MirOS: src/bin/mksh/dot.mkshrc,v 1.30 2008/03/03 20:22:37 tg Stab $
|
||||||
#-
|
#-
|
||||||
# Copyright (c) 2007, 2008
|
# Copyright (c) 2007, 2008
|
||||||
# Thorsten “mirabilos” Glaser <tg@mirbsd.de>
|
# Thorsten “mirabilos” Glaser <tg@mirbsd.de>
|
||||||
@ -64,7 +64,6 @@ whence -p hd >&- || function hd {
|
|||||||
# Berkeley C shell compatible dirs, popd, and pushd functions
|
# Berkeley C shell compatible dirs, popd, and pushd functions
|
||||||
# Z shell compatible chpwd() hook, used to update DIRSTACK[0]
|
# Z shell compatible chpwd() hook, used to update DIRSTACK[0]
|
||||||
DIRSTACKBASE=$(readlink -nf ~/. 2>&- || print -nr -- "$HOME")
|
DIRSTACKBASE=$(readlink -nf ~/. 2>&- || print -nr -- "$HOME")
|
||||||
typeset -r DIRSTACKBASE
|
|
||||||
set -A DIRSTACK
|
set -A DIRSTACK
|
||||||
function chpwd {
|
function chpwd {
|
||||||
DIRSTACK[0]=$(readlink -nf . 2>&- || print -r -- "$PWD")
|
DIRSTACK[0]=$(readlink -nf . 2>&- || print -r -- "$PWD")
|
||||||
|
Loading…
Reference in New Issue
Block a user