On Mon, Aug 03, 2009 at 10:21:30AM +0200, soko.tica wrote:
> Hello list,
> 
> ## Those wanting to respond by RTFM, please just ignore me /
> 
> I need to check the difference between sources in anoncvs and the
> source I fetched to apply the latest patch in -stable. However:
> 
> # cvs -nt diff -c -rOPENBSD_4_5
> ...
> cvs server: Diffing usr.sbin/ztsscale
> ==
> 
> produces the output too large for one screen, and I can't see any line
> ending with + while

diff marks lines at the beginning, not the end.

> ==
> # cvs -nt diff -c -rOPENBSD_4_5 | 2>&1 /somewhere/diff.txt
>  -> main loop with [email protected]:/cvs
>  -> Starting server: ssh anoncvs.de.openbsd.org -l anoncvs cvs server
> ksh: /somewhere/diff.txt: cannot execute - Permission denied
> ==
> 
> How should I properly check it? How would a line showing difference look like?

you're piping (|) to a file.  that's wrong.  you should pipe to a command,
or redirect (>) to a file:

$ cvs diff -u | less

$ cvs diff -u > /tmp/diff

I also suggest dropping -nt from the cvs command as well as using -u
instead of -c for the diff.

ftp://ftp.openbsd.org/pub/OpenBSD/patches/4.5/common/ contains some
diffs to look at as examples.

> 
> Many thanks in advance to anyone bothering to respond.

I still think you need to do some rtfming.  maybe even get a book on
Unix basics.

-- 
[email protected]
SDF Public Access UNIX System - http://sdf.lonestar.org

Reply via email to