Red Hat Bugzilla – Bug 64474
cvs diff can't handle diff options
Last modified: 2005-10-31 17:00:50 EST
Description of Problem:
Not sure if this is a problem with...
- cvs diff
or something else. Most likely cvs is broke and rcsdiff may have similar
problems. According to the man page, cvs diff will pass through parameters
to rcsdiff (which passes them through to diff) when doing a file comparison.
The bug is shown if blanks appear in any of the arguments. Have also checked
on a system with Skipjack beta 2, no change in behavior there either.
Version-Release number of selected component (if applicable):
Attaching a script that works and one that fails to properly compare and
print out the differences in a file [changes highlighted by enscript]. Using
a checked out copy of a CVS directory, make a change to a file & run this
script like this...
code_review.OK file printer
to generate the good results. You can also do
code_review file printer
to generate the failing results.
Steps to Reproduce:
1. See above.
Errors shown when running script, output not correct.
Will be attaching two files, code_review.OK works properly using
octal codes for spaces; code_review attempts to use various quoting methods
with the spaces & none have worked.
Created attachment 56425 [details]
Script that works
Created attachment 56426 [details]
Script that does not work
Yes, you can't use spaces in cvs diff command. I sent patch to cvs