Subject: bin/11427: Problem with rcs tools / diff / libc
To: None <>
From: None <>
List: netbsd-bugs
Date: 11/05/2000 20:34:13
>Number:         11427
>Category:       bin
>Synopsis:       ci fails because diff complains of illegal argument
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Nov 05 20:34:00 PST 2000
>Release:        2000/11/04
System: NetBSD 1.5I NetBSD 1.5I (MATEUS-20001102) #1: Fri Nov 3 03:56:33 BRST 2000 i386

	Whenever trying to use ci to update a file in RCS, it fails when
	invoking diff, and diff returns a message complaining about an illegal
	option ``-'', as shown below, in the "How-To-Repeat" section.

	I tried to track the problem and noticed that neither rcs-related
	tools nor diff have had changes in a _long_ time (generally more than
	a year).  So I turned to getopt and getopt_long in the libc as other
	possible candidates to be investigated.  That makes sense to me, as
	the last time I used RCS tools I was using -current from July/2000,
	and latest modification in getopt_long was in 2000/08/25.

	Create a file (say "test.c") and check in the initail revision, then
	modify it and try a new check-in.

		% ci -l test.c
		RCS/test.c,v  <--  test.c
		new revision: 1.2; previous revision: 1.1
		enter log message, terminated with single '.' or end of file:
		>> Any fool description.  
		>> .
		diff: illegal option -- -
		/usr/bin/diff: Try `/usr/bin/diff --help' for more information.
		ci: RCS/test.c,v: diff failed
		ci aborted

	Unfortunately, I cannot investigate any further to say.