delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/03/03/17:51:39

From: jeffdbREMOVETHIS AT netzone DOT com (Mikey)
Subject: No quoting bug in ash
3 Mar 1998 17:51:39 -0800 :
Message-ID: <34fc0b4b.147582666.cygnus.gnu-win32@smtp.netzone.com>
Reply-To: jeffdbREMOVETHIS AT netzone DOT com
Mime-Version: 1.0
To: gnu-win32 AT cygnus DOT com

Bash is smarter than ash so nobody noticed. From dllinit.diff.

diff -u cdk/winsup/dcrt0.cc.p2 cdk/winsup/dcrt0.cc
--- cdk/winsup/dcrt0.cc.p2	Thu Jul 24 15:22:44 1997
+++ cdk/winsup/dcrt0.cc	Tue Jul 29 11:08:00 1997
@@ -89,12 +90,12 @@
       char *d;
       out[count] = d = s;
       
-      if (*s == '"')
+      if (*s == '\"')
 	{
 	  s++;
-	  while (s[0] && (s[0] != '"' || (s[0] == '"' && s[1] == '"')))
+	  while (s[0] && (s[0] != '\"' || (s[0] == '\"' && s[1] == '\"')))
 	    {
-	      if (*s== '"')
+	      if (*s== '\"')
 		s++;
 	      *d++ = *s++;
 	    }
@@ -136,15 +137,15 @@
 	break;
       
       debug_printf ("compute_argc: src is now %s\n", src);
-      if (*src == '"')
+      if (*src == '\"')
 	{
 	  src++;
 	  while (src[0])
 	    {
-	      if (src[0] == '"') 
+	      if (src[0] == '\"') 
 		{
 		  src++;
-		  if (src[0] != '"') break;
+		  if (src[0] != '\"') break;
 		}
 	      
 	      src++;


=====================================================
Linux a platform built by, and for users, standing on
the firm legs of reliability, and speed.

Microsoft Windows, a platform without a leg to stand on.

(jeffdbREMOVETHIS AT netzone DOT com)
delete REMOVETHIS from the above to reply
         Mikey
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019