Merge remote-tracking branch 'mksh/master'

This commit is contained in:
KO Myung-Hun
2016-01-24 16:43:45 +09:00
16 changed files with 107 additions and 95 deletions

6
misc.c
View File

@ -3,7 +3,7 @@
/*-
* Copyright (c) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
* 2011, 2012, 2013, 2014, 2015
* 2011, 2012, 2013, 2014, 2015, 2016
* mirabilos <m@mirbsd.org>
*
* Provided that these terms and disclaimer and all copyright notices
@ -30,7 +30,7 @@
#include <grp.h>
#endif
__RCSID("$MirOS: src/bin/mksh/misc.c,v 1.240 2015/10/09 16:11:17 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/misc.c,v 1.241 2016/01/21 18:24:43 tg Exp $");
#define KSH_CHVT_FLAG
#ifdef MKSH_SMALL
@ -1873,7 +1873,7 @@ c_cd(const char **wp)
* we don't
*/
if ((cp = strstr(current_wd, wp[0])) == NULL) {
bi_errorf("bad substitution");
bi_errorf(Tbadsubst);
return (2);
}
/*-