updated for version 7.0040
diff --git a/src/os_unix.c b/src/os_unix.c
index 6186d92..81fa424 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -4939,7 +4939,12 @@
 		    *p++ = '"';
 		}
 		else
-		    *p++ = pat[i][j++];
+		{
+		    /* For a backslash also copy the next character, don't
+		     * want to put quotes around it. */
+		    if ((*p++ = pat[i][j++]) == '\\' && pat[i][j] != NUL)
+			*p++ = pat[i][j++];
+		}
 	    *p = NUL;
 #endif
 	}