[Date Prev] [Date Next] [Thread Prev] [Thread Next] Date Index Thread Index Search archive:
Date:Mon May 7 10:17:20 1998 
Subject:ved_man infelicity: names with dots 
From:Stefek Zaba 
Volume-ID:980507.02 

ved_man is an ever-so-useful command for reading Unix man pages within the
Ved environment. It has a peculiarity in handling the argument (the name
of the manpage), however: if it contains a dot, the argument is treated as
a "raw" manfile and passed to "'nroff -man ' >< sysfileok( vedargument )",
rather than the usual case of being treated as the argument to the "man"
command.

This is unfortunate for "ordinary" manpages whose names contain a dot, for
example "man smb.conf" in my environment (Samba config file, as it happens).

The fix is trivial - copy the result of "showlib ved_man" to one of your
autoloaded local directories which precedes the system ones on your popliblist,
and remove the "or strmember( `.`, arg )" clause from line 29 (or thereabouts
- it's the test which determines whether to construct "nroff -man foo" or
"man foo" as the command to pipein in the inner procedure get_vbuff).

Doubtless the way it's coded was locally useful to Jon Meyer in November 1991,
if I read the revision history aright; but for my needs the presence of a
`/` in vedargument is a sufficient condition to mark non-$MANPATH files...

Happy man'ing and ved'ing - Stefek