[Cook] [PATCH] MANPATH for cook -help
Lev S Bishop
lev.bishop at yale.edu
Tue May 3 04:55:32 EST 2005
Cook goes to a lot of trouble to set MANPATH correctly before calling
'man cook' when you type cook -help, but it incorrectly drops empty
path-elements. In the words of my /etc/profile.d/xorg-x11-man-pages.sh:
# NOTE: MANPATH is special, it requires a leading : in order to
# search its default paths in addition to those specified in MANPATH.
Here is a patch to fix this:
--- common/help.c 2004-07-17 06:09:39.000000000 -0400
+++ common/help.c 2005-04-22 18:15:24.559968000 -0400
@@ -144,7 +144,7 @@
/*
* set the MANPATH environment variable
*/
- s = wl2str(&manpath, 0, manpath.nstrings, ":");
+ s = wl2str_respect_empty(&manpath, 0, manpath.nstrings, ":",1);
string_list_destructor(&manpath);
env_set("MANPATH", s->str_text);
str_free(s);
More information about the Cook-users
mailing list