From: John Darrington Date: Sat, 17 Dec 2011 21:14:11 +0000 (+0100) Subject: Escape # character in call to g_spawn_command_line_async X-Git-Tag: v0.7.9~54 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7bb6562c9efa3f6ef5ebfe9bc4e1736df442344;p=pspp-builds.git Escape # character in call to g_spawn_command_line_async It seems that this character was being treated as a comment start. --- diff --git a/src/ui/gui/help-menu.c b/src/ui/gui/help-menu.c index 73358077..f746441c 100644 --- a/src/ui/gui/help-menu.c +++ b/src/ui/gui/help-menu.c @@ -95,9 +95,7 @@ online_help (const char *page) if (page == NULL) cmd = g_strdup_printf ("yelp file://%s", relocate (DOCDIR "/pspp.xml")); else - cmd = g_strdup_printf ("yelp file://%s#%s", relocate (DOCDIR "/pspp.xml"), page); - - g_print ("%s\n",cmd); + cmd = g_strdup_printf ("yelp file://%s\\#%s", relocate (DOCDIR "/pspp.xml"), page); if ( ! g_spawn_command_line_async (cmd, &err) ) {