svn commit: r315585 - head/bin/sh

Jilles Tjoelker jilles at FreeBSD.org
Sun Mar 19 21:18:54 UTC 2017


Author: jilles
Date: Sun Mar 19 21:18:53 2017
New Revision: 315585
URL: https://svnweb.freebsd.org/changeset/base/315585

Log:
  sh: Fix build with -DDEBUG=2.
  
  With the new expansion code (word splitting during instead of after other
  expansion processing), tracing the result of command substitution is no
  longer possible, so stop trying.

Modified:
  head/bin/sh/expand.c

Modified: head/bin/sh/expand.c
==============================================================================
--- head/bin/sh/expand.c	Sun Mar 19 20:51:28 2017	(r315584)
+++ head/bin/sh/expand.c	Sun Mar 19 21:18:53 2017	(r315585)
@@ -522,10 +522,7 @@ expbackq(union node *cmd, int quoted, in
 		exitstatus = waitforjob(in.jp, (int *)NULL);
 		ungrabstackstr(p, dest);
 	}
-	TRACE(("expbackq: size=%td: \"%.*s\"\n",
-		((dest - stackblock()) - startloc),
-		(int)((dest - stackblock()) - startloc),
-		stackblock() + startloc));
+	TRACE(("expbackq: done\n"));
 	expdest = dest;
 	INTON;
 }


More information about the svn-src-head mailing list