forgotten in cid 1004EA5BF612F516747 to take '\n' presence as $'…' quoting reason

This commit is contained in:
tg 2011-10-26 20:46:16 +00:00
parent fed31331f4
commit 92b60a9a5e
3 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
# $MirOS: src/bin/mksh/check.t,v 1.484 2011/10/24 19:41:09 tg Exp $
# $MirOS: src/bin/mksh/check.t,v 1.485 2011/10/26 20:46:13 tg Exp $
# $OpenBSD: bksl-nl.t,v 1.2 2001/01/28 23:04:56 niklas Exp $
# $OpenBSD: history.t,v 1.5 2001/01/28 23:04:56 niklas Exp $
# $OpenBSD: read.t,v 1.3 2003/03/10 03:48:16 david Exp $
@ -25,7 +25,7 @@
# http://www.research.att.com/~gsf/public/ifs.sh
expected-stdout:
@(#)MIRBSD KSH R40 2011/10/24
@(#)MIRBSD KSH R40 2011/10/26
description:
Check version of shell.
stdin:

4
misc.c
View File

@ -29,7 +29,7 @@
#include <grp.h>
#endif
__RCSID("$MirOS: src/bin/mksh/misc.c,v 1.176 2011/10/25 22:36:37 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/misc.c,v 1.177 2011/10/26 20:46:15 tg Exp $");
/* type bits for unsigned char */
unsigned char chtypes[UCHAR_MAX + 1];
@ -1038,7 +1038,7 @@ print_value_quoted(const char *s)
/* first, check whether any quotes are needed */
while ((c = *p++) != 0)
if (c < 32 && c != '\n')
if (c < 32)
break;
else if (ctype(*p, C_QUOTE))
inquote = false;

4
sh.h
View File

@ -151,9 +151,9 @@
#endif
#ifdef EXTERN
__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.498 2011/10/25 22:36:37 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.499 2011/10/26 20:46:16 tg Exp $");
#endif
#define MKSH_VERSION "R40 2011/10/24"
#define MKSH_VERSION "R40 2011/10/26"
#ifndef MKSH_INCLUDES_ONLY