Bug 14534

Summary: Formatting man pages gives numeric expression expected error
Product: Base System Reporter: Peter Jeremy <jeremyp>
Component: binAssignee: mpp
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.0-CURRENT   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Peter Jeremy 1999-10-26 06:30:00 UTC
	Documents using the `-offset string' function in mdoc will report
	errors and fail to format in troff mode.  The mdoc macro tries
	to interpret `string' as a number to see if it matches the
	`-offset xxn' variant.  If the first character of string is not
	numeric, groff reports an error.

Fix: Inserting a zero before the interpolated string silences the
	error and appears to generate correct output.
How-To-Repeat: 
	groff -man /usr/src/sbin/camcontrol/camcontrol.8 > /dev/null
	
	reports:

/usr/src/sbin/camcontrol/camcontrol.8:549: warning: numeric expression expected (got `f')
/usr/src/sbin/camcontrol/camcontrol.8:561: warning: numeric expression expected (got `f')
/usr/src/sbin/camcontrol/camcontrol.8:570: warning: numeric expression expected (got `f')
/usr/src/sbin/camcontrol/camcontrol.8:580: warning: numeric expression expected (got `f')
/usr/src/sbin/camcontrol/camcontrol.8:601: warning: numeric expression expected (got `f')
/usr/src/sbin/camcontrol/camcontrol.8:607: warning: numeric expression expected (got `f')
/usr/src/sbin/camcontrol/camcontrol.8:614: warning: numeric expression expected (got `f')
/usr/src/sbin/camcontrol/camcontrol.8:672: warning: numeric expression expected (got `f')
Comment 1 Sheldon Hearn freebsd_committer freebsd_triage 1999-10-26 10:46:59 UTC
Responsible Changed
From-To: freebsd-bugs->mpp

Over to Mr. Mdoc. 
Comment 2 mpp freebsd_committer freebsd_triage 2000-05-05 02:59:30 UTC
State Changed
From-To: open->closed

Fixed in rev 1.20 of camcontrol.8.