Author: jilles
Date: Sat Nov 22 16:03:18 2014
New Revision: 274854
URL: https://svnweb.freebsd.org/changeset/base/274854

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

Modified:
  head/bin/sh/expand.c

Modified: head/bin/sh/expand.c
==============================================================================
--- head/bin/sh/expand.c        Sat Nov 22 15:09:18 2014        (r274853)
+++ head/bin/sh/expand.c        Sat Nov 22 16:03:18 2014        (r274854)
@@ -337,7 +337,7 @@ done:
        if (home == NULL || *home == '\0')
                return (startp);
        if (quotes)
-               STPUTS_QUOTES(home, SQSYNTAX, expdest);
+               STPUTS_QUOTES(home, DQSYNTAX, expdest);
        else
                STPUTS(home, expdest);
        return (p);
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to