diff src/help.cc @ 6099:2b065bbbd1c2

[project @ 2006-10-26 15:56:30 by jwe]
author jwe
date Thu, 26 Oct 2006 15:56:30 +0000
parents 25da9a7d5f6d
children c5874b47d571
line wrap: on
line diff
--- a/src/help.cc
+++ b/src/help.cc
@@ -779,7 +779,9 @@
 
       std::ostringstream buf;
 
-      buf << "sed -e 's/^[#%][#%]* *//' -e 's/^ *@/@/' | "
+      // Use double quotes to quote the sed patterns for Windows.
+
+      buf << "sed -e \"s/^[#%][#%]* *//\" -e \"s/^ *@/@/\" | "
 	  << "\"" << Vmakeinfo_program << "\""
 	  << " -D \"VERSION " << OCTAVE_VERSION << "\""
 	  << " -D \"OCTAVEHOME " << OCTAVE_PREFIX << "\""