From 727fae80dd096eec5b166ccb9113aa5bd2dbe76e Mon Sep 17 00:00:00 2001 From: kre Date: Thu, 18 May 2017 13:31:10 +0000 Subject: [PATCH] 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). --- bin/sh/output.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/sh/output.c b/bin/sh/output.c index 090009f94913..015cb0ab8550 100644 --- a/bin/sh/output.c +++ b/bin/sh/output.c @@ -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 *file) */ if (need_q) { if ((inq = inquote(p)) != 0) - outc('\'', file); + outc('\'', file); } else inq = 0;