[net.bugs] bug in AT&T Toolchest version of vsh

steffen@ihuxx.UUCP (Joe Steffen) (07/30/85)

There is a bug in the AT&T Toolchest version of vsh that prevents it from
finding the help files.  In help.c, change:

	/* get the help file pathname */
	if ((s = getenv("TOOLS")) != 0) {
		strcpy(pathname, s);
		strcat(pathname, "/");
	}
	strcat(pathname, parm);
	
to:

	/* get the help file pathname */
	if ((s = getenv("TOOLS")) != 0) {
		strcpy(pathname, s);
		strcat(pathname, "/");
		strcat(pathname, parm);
	}
	else {
		strcpy(pathname, parm);
	}

or, more simply:

	/* get the help file pathname */
	strcpy(pathname, parm);

The TOOLS code was added for our experimental tools (exptools) version,
unfortunately it added a latent bug for the regular version.

This version of vsh is Dave Scheibelhut's original plus my enhancements.
-- 


	Joe Steffen, AT&T Bell Labs, Naperville, IL, (312) 979-5381