cd does weird things wrt. error messages; slightly better, from carstenh via IRC

This commit is contained in:
tg 2015-06-27 20:44:01 +00:00
parent 643cd0b7e9
commit f03037706c
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
# $Id$ # $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, # Copyright (c) 2002, 2003, 2004, 2006, 2007, 2008, 2009, 2010,
# 2011, 2012, 2013, 2014, 2015 # 2011, 2012, 2013, 2014, 2015
@ -112,7 +112,7 @@ function chpwd {
\: \:
} }
\chpwd . \chpwd .
function cd { cd() {
\builtin cd "$@" || \return $? \builtin cd "$@" || \return $?
\chpwd "$@" \chpwd "$@"
} }