anjuta r3508 - in trunk: . libanjuta



Author: jhs
Date: Mon Jan 21 11:28:05 2008
New Revision: 3508
URL: http://svn.gnome.org/viewvc/anjuta?rev=3508&view=rev

Log:
2008-01-20  Rob Bradford  <rob openedhand com>

	* libanjuta/anjuta-utils.c: (anjuta_util_parse_args_from_string):
	Fix parsing with quotes in the command line. Kudos to Jorn Baayen for
	coming up with the solution. (Bug: #51039

Modified:
   trunk/ChangeLog
   trunk/libanjuta/anjuta-utils.c

Modified: trunk/libanjuta/anjuta-utils.c
==============================================================================
--- trunk/libanjuta/anjuta-utils.c	(original)
+++ trunk/libanjuta/anjuta-utils.c	Mon Jan 21 11:28:05 2008
@@ -855,7 +855,7 @@
 		} else if (*s == '\\') {
 			/* Current char is an escape */
 			escaped = TRUE;
-		} else if (*s == quote) {
+		} else if (is_quote && *s == quote) {
 			/* Current char ends a quotation */
 			is_quote = FALSE;
 			if (!isspace(*(s+1)) && (*(s+1) != '\0')) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]