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-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fbuilds%2F20111218030503%2Fpspp;p=pspp 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 733580770b..f746441c23 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) ) {