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

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;