Subject: bin/11427: Problem with rcs tools / diff / libc
To: None <firstname.lastname@example.org>
From: None <email@example.com>
Date: 11/05/2000 20:34:13
>Synopsis: ci fails because diff complains of illegal argument
>Arrival-Date: Sun Nov 05 20:34:00 PST 2000
System: NetBSD mateus.ppires.org 1.5I NetBSD 1.5I (MATEUS-20001102) #1: Fri Nov 3 03:56:33 BRST 2000 Pappires@mateus.ppires.org:/usr/src/sys/arch/i386/compile/MATEUS-20001102 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
Unfortunately, I cannot investigate any further to say.