PR-4339040.patch   [plain text]


--- job.c.orig	2006-03-19 19:03:04.000000000 -0800
+++ job.c	2006-11-30 17:58:07.000000000 -0800
@@ -2473,23 +2473,7 @@
 	    }
 	  else if (*p == '\\' && p[1] == '\n')
             {
-              /* Backslash-newline is handled differently depending on what
-                 kind of string we're in: inside single-quoted strings you
-                 keep them; in double-quoted strings they disappear.
-	         For DOS/Windows/OS2, if we don't have a POSIX shell,
-		 we keep the pre-POSIX behavior of removing the
-		 backslash-newline.  */
-              if (instring == '"'
-#if defined (__MSDOS__) || defined (__EMX__) || defined (WINDOWS32)
-		  || !unixy_shell
-#endif
-		  )
                 ++p;
-              else
-                {
-                  *(ap++) = *(p++);
-                  *(ap++) = *p;
-                }
               /* If there's a TAB here, skip it.  */
               if (p[1] == '\t')
                 ++p;
@@ -2794,22 +2778,6 @@
 	  }
 	else if (*p == '\\' && p[1] == '\n')
 	  {
-	    /* POSIX says we keep the backslash-newline, but throw out
-               the next char if it's a TAB.  If we don't have a POSIX
-               shell on DOS/Windows/OS2, mimic the pre-POSIX behavior
-               and remove the backslash/newline.  */
-#if defined (__MSDOS__) || defined (__EMX__) || defined (WINDOWS32)
-# define PRESERVE_BSNL  unixy_shell
-#else
-# define PRESERVE_BSNL  1
-#endif
-	    if (PRESERVE_BSNL)
-	      {
-		*(ap++) = '\\';
-		*(ap++) = '\\';
-		*(ap++) = '\n';
-	      }
-
 	    ++p;
 	    if (p[1] == '\t')
 	      ++p;