cd does weird things wrt. error messages; slightly better, from carstenh via IRC
This commit is contained in:
parent
643cd0b7e9
commit
f03037706c
|
@ -1,5 +1,5 @@
|
|||
# $Id$
|
||||
# $MirOS: src/bin/mksh/dot.mkshrc,v 1.97 2015/04/29 20:56:18 tg Exp $
|
||||
# $MirOS: src/bin/mksh/dot.mkshrc,v 1.98 2015/06/27 20:44:01 tg Exp $
|
||||
#-
|
||||
# Copyright (c) 2002, 2003, 2004, 2006, 2007, 2008, 2009, 2010,
|
||||
# 2011, 2012, 2013, 2014, 2015
|
||||
|
@ -112,7 +112,7 @@ function chpwd {
|
|||
\:
|
||||
}
|
||||
\chpwd .
|
||||
function cd {
|
||||
cd() {
|
||||
\builtin cd "$@" || \return $?
|
||||
\chpwd "$@"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue