Subject: No quoting bug in ash
From: [email-masked] (Mikey)

3 Mar 1998 17:51:39 -0800
Message-ID: <[email-masked]>
Reply-To: [email-masked]
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
To: [email-masked]

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.

([email-masked])
delete REMOVETHIS from the above to reply
         Mikey
-
For help on using this list (especially unsubscribing), send a message to
"[email-masked]" with one line of text: "help".