From f03037706ce6bcb107a73bb6cfe0e10e74391737 Mon Sep 17 00:00:00 2001 From: tg Date: Sat, 27 Jun 2015 20:44:01 +0000 Subject: [PATCH] cd does weird things wrt. error messages; slightly better, from carstenh via IRC --- dot.mkshrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dot.mkshrc b/dot.mkshrc index d24397f..1f9b5fa 100644 --- a/dot.mkshrc +++ b/dot.mkshrc @@ -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 "$@" }