Module Name:    src
Committed By:   kre
Date:           Thu May 18 13:31:10 UTC 2017

Modified Files:
        src/bin/sh: output.c

Log Message:
Added comma and plus to the "don't need quoting" set.  This affects
output from "sh -x" only (tracing execution), not quoting + is better,
as it makes tracing commands with + and - options, or numbers, more
consistent.

Also one minor white space change (excess indentation removed).


To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 src/bin/sh/output.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/bin/sh/output.c
diff -u src/bin/sh/output.c:1.35 src/bin/sh/output.c:1.36
--- src/bin/sh/output.c:1.35	Sat Mar 12 14:59:26 2016
+++ src/bin/sh/output.c	Thu May 18 13:31:10 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: output.c,v 1.35 2016/03/12 14:59:26 christos Exp $	*/
+/*	$NetBSD: output.c,v 1.36 2017/05/18 13:31:10 kre Exp $	*/
 
 /*-
  * Copyright (c) 1991, 1993
@@ -37,7 +37,7 @@
 #if 0
 static char sccsid[] = "@(#)output.c	8.2 (Berkeley) 5/4/95";
 #else
-__RCSID("$NetBSD: output.c,v 1.35 2016/03/12 14:59:26 christos Exp $");
+__RCSID("$NetBSD: output.c,v 1.36 2017/05/18 13:31:10 kre Exp $");
 #endif
 #endif /* not lint */
 
@@ -147,7 +147,7 @@ out2shstr(const char *p)
 
 
 static const char norm_chars [] = \
-    "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789/-=_.'";
+    "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789/+-=_,.'";
 
 static int
 inquote(const char *p)
@@ -176,7 +176,7 @@ outshstr(const char *p, struct output *f
 	 */
 	if (need_q) {
 		if ((inq = inquote(p)) != 0)
-				outc('\'', file);
+			outc('\'', file);
 	} else
 		inq = 0;
 

Reply via email to