svn commit: r276364 - stable/10/bin/sh

Jilles Tjoelker jilles at FreeBSD.org
Mon Dec 29 15:15:28 UTC 2014


Author: jilles
Date: Mon Dec 29 15:15:27 2014
New Revision: 276364
URL: https://svnweb.freebsd.org/changeset/base/276364

Log:
  MFC r274854: sh: Use DQSYNTAX only while expanding, not SQSYNTAX.
  
  Quoting during expansion only cares about CCTL, which is the same for
  DQSYNTAX and SQSYNTAX.

Modified:
  stable/10/bin/sh/expand.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/bin/sh/expand.c
==============================================================================
--- stable/10/bin/sh/expand.c	Mon Dec 29 15:11:07 2014	(r276363)
+++ stable/10/bin/sh/expand.c	Mon Dec 29 15:15:27 2014	(r276364)
@@ -339,7 +339,7 @@ done:
 		goto lose;
 	*p = c;
 	if (quotes)
-		STPUTS_QUOTES(home, SQSYNTAX, expdest);
+		STPUTS_QUOTES(home, DQSYNTAX, expdest);
 	else
 		STPUTS(home, expdest);
 	return (p);


More information about the svn-src-stable mailing list