Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/bin/sh Added comma and plus to the "don't need quoting" set....



details:   https://anonhg.NetBSD.org/src/rev/733b295baaa6
branches:  trunk
changeset: 824001:733b295baaa6
user:      kre <kre%NetBSD.org@localhost>
date:      Thu May 18 13:31:10 2017 +0000

description:
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).

diffstat:

 bin/sh/output.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r b1614d80d316 -r 733b295baaa6 bin/sh/output.c
--- a/bin/sh/output.c   Thu May 18 13:28:00 2017 +0000
+++ b/bin/sh/output.c   Thu May 18 13:31:10 2017 +0000
@@ -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 @@
 
 
 static const char norm_chars [] = \
-    "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789/-=_.'";
+    "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789/+-=_,.'";
 
 static int
 inquote(const char *p)
@@ -176,7 +176,7 @@
         */
        if (need_q) {
                if ((inq = inquote(p)) != 0)
-                               outc('\'', file);
+                       outc('\'', file);
        } else
                inq = 0;
 



Home | Main Index | Thread Index | Old Index