--- src/man.c.orig 2006-06-02 12:52:27.000000000 -0700
+++ src/man.c 2006-06-02 15:11:32.000000000 -0700
if (expander && *expander) {
- command = my_xsprintf ("%s %S", expander, name);
+ command = my_xsprintf ("%s '%Q'", expander, name);
fp = my_popen (command, "r");
if (expander && *expander) {
if (converter && *converter)
- command = my_xsprintf("%s%s '%S' | %s%s",
+ command = my_xsprintf("%s%s '%Q' | %s%s",
bufh, expander, file, converter, buft);
- command = my_xsprintf("%s%s '%S'%s",
+ command = my_xsprintf("%s%s '%Q'%s",
bufh, expander, file, buft);
const char *cat = getval("CAT");
if (converter && *converter)
- command = my_xsprintf("%s%s '%S' | %s%s",
+ command = my_xsprintf("%s%s '%Q' | %s%s",
bufh, cat, file, converter, buft);
- command = my_xsprintf("%s%s '%S'%s",
+ command = my_xsprintf("%s%s '%Q'%s",
if (expander && *expander) {
- char *cmd = my_xsprintf ("%s %S", expander, file);
+ char *cmd = my_xsprintf ("%s '%Q'", expander, file);
fp = my_popen (cmd, "r");
if (roff_command == NULL)
- command = my_xsprintf ("(cd \"%S\" && %s)", path, roff_command);
+ command = my_xsprintf ("(cd '%Q' && %s)", path, roff_command);
- command = my_xsprintf ("(cd \"%S\" && %s | (%s || true))", path,
+ command = my_xsprintf ("(cd '%Q' && %s | (%s || true))", path,
return !do_system_command (command, 0);