*BSD News Article 21397


Return to BSD News archive

Newsgroups: comp.os.386bsd.bugs
Path: sserve!newshost.anu.edu.au!munnari.oz.au!constellation!osuunx.ucc.okstate.edu!moe.ksu.ksu.edu!crcnis1.unl.edu!wupost!slustl!ejh
From: ejh@slustl.slu.edu (Eric J. Haug)
Subject: problem with tputs
Message-ID: <1993Sep24.170018.1125@slustl.slu.edu>
Organization: St. Louis Univ.
Date: Fri, 24 Sep 1993 17:00:18 GMT
Lines: 16

There is a problem in src/usr.bin/tput/tputs.c that makes obtaining
the li parameter fail.
There exists a switch() statement that tests for 'l' and
does a string compare for longname.
If the compare fails, then continue with the next arguement.
I chose to combine the call to prlongname() and continue into
a block and add an else clause containing a break;
	case 'l':
		if (!strcmp(p, "longname")) {
			prlongname(tbuf);
			continue;
		} else
			break;
Tset was also somewhat different than the SunOs tset. However, a careful
reading of the manual will result in compatible usage.
eric